Skip to content
fayeuiStatic / 0.1.0
LLMs
API / Static edition

@fayegram-ai/faye-ui/feedback/progress

Public exports and dependency-resolved component properties, with usage and rendering guidance.

Import

import { LinearProgress, Progress } from '@fayegram-ai/faye-ui/feedback/progress';

Usage and behavior guide · API JSON

This entry declares a client boundary. Follow the rendering guide for framework integration.

Public exports

NameKindResolved declaration type
LinearProgressvalue({ value, bufferValue, mode, min, max, label, showValue, ...props }: LinearProgressProps) => import("react").JSX.Element
ProgressRootPropstypeProgressRootProps
Progressvalue{ readonly Root: { (input: ProgressRootProps & { variants?: { readonly size?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "size"> | undefined; readonly tone?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "tone"> | undefined; } | undefined; }): import("react").ReactElement; displayName: string; }; readonly Track: { (input: Omit<import("@base-ui/react").ProgressTrackProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & { variants?: { readonly size?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "size"> | undefined; readonly tone?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "tone"> | undefined; } | undefined; }): import("react").Re… (full type in API JSON)
LinearProgressPropstypeLinearProgressProps

LinearProgress

A buffer is a visual loaded amount; the accessible value remains completed work.

Dependency-resolved declaration properties. Common React/native HTML attributes are omitted from the table; use the full declaration and React/native references. Generic and union restrictions remain authoritative in TypeScript.

Properties

PropertyRequiredTypeMeaning
animationDirectionNo"ltr" | "rtl" | undefinedPhysical direction of indeterminate/query motion, independent of text direction.
aria-valuetextNostring | undefinedA string value that provides a user-friendly name for aria-valuenow, the current value of the progress bar.
bufferValueNonumber | undefinedSee the usage contract and declaration.
classNameNostring | ((state: ProgressRootState) => string | undefined) | undefinedCSS class applied to the element, or a function that returns a class based on the component's state.
formatNoIntl.NumberFormatOptions | undefinedOptions to format the value.
getAriaValueTextNo((formattedValue: string, value: number | null) => string) | undefinedAccepts a function which returns a string value that provides a human-readable text alternative for the current value of the progress bar.
labelNoReactNodeSee the usage contract and declaration.
localeNoIntl.LocalesArgumentThe locale used by Intl.NumberFormat when formatting the value. Defaults to the user's runtime locale.
maxNonumber | undefinedThe maximum value.
minNonumber | undefinedThe minimum value.
modeNo"indeterminate" | "determinate" | "buffer" | "query" | undefinedSee the usage contract and declaration.
renderNoReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ProgressRootState> | undefinedAllows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
showValueNoboolean | undefinedSee the usage contract and declaration.
styleNoCSSProperties | ((state: ProgressRootState) => React.CSSProperties | undefined) | undefinedStyle applied to the element, or a function that returns a style object based on the component's state.
valueNonumber | null | undefinedSee the usage contract and declaration.
variantsNo{ readonly size?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "size"> | undefined; readonly tone?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "tone"> | undefined; } | undefinedSee the usage contract and declaration.

Progress

Public component; use the linked family guide for complete composition and behavior.

Dependency-resolved declaration properties. Common React/native HTML attributes are omitted from the table; use the full declaration and React/native references. Generic and union restrictions remain authoritative in TypeScript.

Progress.Root

PropertyRequiredTypeMeaning
animationDirectionNo"ltr" | "rtl" | undefinedPhysical direction of indeterminate/query motion, independent of text direction.
aria-valuetextNostring | undefinedA string value that provides a user-friendly name for aria-valuenow, the current value of the progress bar.
classNameNostring | ((state: ProgressRootState) => string | undefined) | undefinedCSS class applied to the element, or a function that returns a class based on the component's state.
formatNoIntl.NumberFormatOptions | undefinedOptions to format the value.
getAriaValueTextNo((formattedValue: string, value: number | null) => string) | undefinedAccepts a function which returns a string value that provides a human-readable text alternative for the current value of the progress bar.
localeNoIntl.LocalesArgumentThe locale used by Intl.NumberFormat when formatting the value. Defaults to the user's runtime locale.
maxNonumber | undefinedThe maximum value.
minNonumber | undefinedThe minimum value.
renderNoReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ProgressRootState> | undefinedAllows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
styleNoCSSProperties | ((state: ProgressRootState) => React.CSSProperties | undefined) | undefinedStyle applied to the element, or a function that returns a style object based on the component's state.
valueYesnumber | nullThe current value. The component is indeterminate when value is null.
variantsNo{ readonly size?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "size"> | undefined; readonly tone?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "tone"> | undefined; } | undefinedSee the usage contract and declaration.

Progress.Track

PropertyRequiredTypeMeaning
classNameNostring | ((state: ProgressTrackState) => string | undefined) | undefinedCSS class applied to the element, or a function that returns a class based on the component's state.
renderNoReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ProgressTrackState> | undefinedAllows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
styleNoCSSProperties | ((state: ProgressTrackState) => React.CSSProperties | undefined) | undefinedStyle applied to the element, or a function that returns a style object based on the component's state.
variantsNo{ readonly size?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "size"> | undefined; readonly tone?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "tone"> | undefined; } | undefinedSee the usage contract and declaration.

Progress.Indicator

PropertyRequiredTypeMeaning
classNameNostring | ((state: ProgressIndicatorState) => string | undefined) | undefinedCSS class applied to the element, or a function that returns a class based on the component's state.
renderNoReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ProgressIndicatorState> | undefinedAllows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
styleNoCSSProperties | ((state: ProgressIndicatorState) => React.CSSProperties | undefined) | undefinedStyle applied to the element, or a function that returns a style object based on the component's state.
variantsNo{ readonly size?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "size"> | undefined; readonly tone?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "tone"> | undefined; } | undefinedSee the usage contract and declaration.

Progress.Value

PropertyRequiredTypeMeaning
childrenNo((formattedValue: string | null, value: number | null) => React.ReactNode) | null | undefinedSee the usage contract and declaration.
classNameNostring | ((state: ProgressValueState) => string | undefined) | undefinedCSS class applied to the element, or a function that returns a class based on the component's state.
renderNoReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ProgressValueState> | undefinedAllows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
styleNoCSSProperties | ((state: ProgressValueState) => React.CSSProperties | undefined) | undefinedStyle applied to the element, or a function that returns a style object based on the component's state.
variantsNo{ readonly size?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "size"> | undefined; readonly tone?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "tone"> | undefined; } | undefinedSee the usage contract and declaration.

Progress.Label

PropertyRequiredTypeMeaning
classNameNostring | ((state: ProgressLabelState) => string | undefined) | undefinedCSS class applied to the element, or a function that returns a class based on the component's state.
renderNoReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps, ProgressLabelState> | undefinedAllows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
styleNoCSSProperties | ((state: ProgressLabelState) => React.CSSProperties | undefined) | undefinedStyle applied to the element, or a function that returns a style object based on the component's state.
variantsNo{ readonly size?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "size"> | undefined; readonly tone?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "tone"> | undefined; } | undefinedSee the usage contract and declaration.

Progress.Buffer

PropertyRequiredTypeMeaning
variantsNo{ readonly size?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "size"> | undefined; readonly tone?: import("@fayegram-ai/faye-ui/contracts/visual-variants").VisualVariant<"progress", "tone"> | undefined; } | undefinedSee the usage contract and declaration.

Defaults and customization

Descriptor defaults: {"size":"md","tone":"neutral"}. Parts: root, track, indicator, value, label, buffer. Explicit instance props take precedence over configured defaults.

Use semantic tokens, public part hooks and customization sheets. Keep visual configuration separate from application state.

State, events and accessibility

For interactive controls, pair a controlled value/open prop with its corresponding change callback; default props initialize uncontrolled state. Keep application validation and submission policy explicit. Name controls with visible labels, name icon-only actions on the button, and preserve focus and dismissal behavior when replacing parts. Use native form names and submit/reset types where supported. See the usage guide for component-specific behavior and live examples.

Declaration authority

Generated from packages/faye-ui/dist/feedback/progress.d.ts after the semantic package build. Common native/React attributes are intentionally omitted from property tables. Generic overloads, discriminated unions and complete inherited attributes remain authoritative in installed TypeScript declarations. React DOM attributes and Base UI component contracts describe the inherited foundations.