Show completion relative to a maximum value.
import { ProgressBar } from '@vrum/ui';
<ProgressBar
value={65}
max={100}
variant={"default"}
size={"md"}
showLabel={true}
aria-label={"Project completion"}
/>Copy code| Prop | Type | Default | Description |
|---|---|---|---|
value | number | 0 | Controlled value; connect the callback to application state. |
max | number | 100 | max configuration. |
variant | "default" | "success" | "warning" | "info" | "error" | "default" | Visual appearance within the Vrum design system. |
size | "sm" | "md" | "lg" | "md" | Size of the component. |
showLabel | boolean | none | show label configuration. |
defaultChecked | boolean | none | default checked configuration. |
defaultValue | string | number | readonly string[] | none | Initial value for an uncontrolled component. |
autoFocus | boolean | none | auto focus configuration. |
className | string | none | Additional CSS classes. |
id | string | none | id configuration. |
style | CSSProperties | none | Inline style overrides. |
aria-invalid | boolean | "false" | "true" | "grammar" | "spelling" | none | Indicates the entered value does not conform to the format expected by the application. |
aria-label | string | none | aria-label configuration. |
children | ReactNode | none | Content rendered inside the component. |
onFocus | FocusEventHandler<HTMLDivElement> | none | on focus configuration. |
onBlur | FocusEventHandler<HTMLDivElement> | none | on blur configuration. |
onChange | ChangeEventHandler<HTMLDivElement, Element> | none | Called when the input value changes. |
onSubmit | SubmitEventHandler<HTMLDivElement> | none | Called when the form is submitted. |
onKeyDown | KeyboardEventHandler<HTMLDivElement> | none | on key down configuration. |
onClick | MouseEventHandler<HTMLDivElement> | none | Called when the control is activated. |
onSelect | ReactEventHandler<HTMLDivElement> | none | on select configuration. |