@stratakit/react
Version:
A React component library for StrataKit
24 lines (23 loc) • 1.21 kB
TypeScript
import * as React from "react";
import type { ProgressLinear as IuiProgressBar } from "@itwin/itwinui-react";
import type { PolymorphicForwardRefComponent } from "./~utils.js";
type IuiProgressBarProps = React.ComponentProps<typeof IuiProgressBar>;
interface ProgressBarProps extends Pick<IuiProgressBarProps, "value" | "indeterminate" | "labels" | "isAnimated" | "status" | "labelGroupProps"> {
/**
* PARTIALLY IMPLEMENTED.
*
* - If `labels` is passed, it now replaces the visually hidden "Loading…" text as a string of `labels` joined with spaces.
* Thus, the previously *visual* `labels` are now *visually hidden*.
* - Else, the visually hidden "Loading…" text is continued to be used when `value!==100`.
*/
labels?: IuiProgressBarProps["labels"];
/** NO-OP: Always animated. */
isAnimated?: IuiProgressBarProps["isAnimated"];
/** NOT IMPLEMENTED. */
status?: IuiProgressBarProps["status"];
/** NOT IMPLEMENTED. */
labelGroupProps?: IuiProgressBarProps["labelGroupProps"];
}
/** @see https://itwinui.bentley.com/docs/progressindicator */
export declare const ProgressLinear: PolymorphicForwardRefComponent<"div", ProgressBarProps>;
export {};