ProgressBar API

API documentation for ProgressBar component

ProgressBar#

Props#

Defines valid properties in ProgressBar component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ProgressBarInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ProgressBarInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ProgressBarPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ProgressBarInstance) => ReactNode)
null
The children to render.
mode"indeterminate" | "determinate"
determinate
Defines the mode of the progress
valuenumber
null
Current value of the progress.
maxnumber
null
Defines the mode of the progress
minnumber
null
Defines the mode of the progress
formatter(value: number) => string
null
Custom formatter function to format the display value
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Interfaces#

Defines passthrough(pt) options of ProgressBar component.

nametypedefaultdescription
rootProgressBarPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.
valueProgressBarPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the value's DOM element.

Types#

Instance of ProgressBar component.

values
ComponentInstance<ProgressBarProps, ProgressBarState, ProgressBarExposes>

ProgressBarLabel#

Props#

Defines valid properties in ProgressBarLabel component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: ProgressBarLabelInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: ProgressBarLabelInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<ProgressBarLabelPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: ProgressBarLabelInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by ProgressBarLabel component.

nametypedefaultdescription
progressbarProgressBarInstance
null
The ProgressBar component instance.

Interfaces#

Defines passthrough(pt) options of ProgressBarLabel component.

nametypedefaultdescription
rootProgressBarLabelPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of ProgressBarLabel component.

values
ComponentInstance<ProgressBarLabelProps, ProgressBarLabelState, ProgressBarLabelExposes>

useProgressBar#

Types#

Instance of useProgressBar headless.

values
HeadlessInstance<useProgressBarProps, useProgressBarState, useProgressBarExposes>