Back to Twenty

Feedback

packages/twenty-docs/twenty-ui/progress-bar.mdx

2.2.01.7 KB
Original Source

Indicates progress or countdown and moves from right to left.

<Tabs> <Tab title="Usage">
jsx
import { ProgressBar } from "twenty-ui/feedback";

export const MyComponent = () => {
  return (
    <ProgressBar
      duration={6000}
      delay={0}
      easing="easeInOut"
      barHeight={10}
      barColor="#4bb543"
      autoStart={true}
    />
  );
};
</Tab> <Tab title="Props">
PropsTypeDescriptionDefault
durationnumberThe total duration of the progress bar animation in milliseconds3
delaynumberThe delay in starting the progress bar animation in milliseconds0
easingstringEasing function for the progress bar animationeaseInOut
barHeightnumberThe height of the bar in pixels24
barColorstringThe color of the bargray80
autoStartbooleanIf true, the progress bar animation starts automatically when the component mountstrue
</Tab> </Tabs>

Circular Progress Bar

Indicates the progress of a task, often used in loading screens or areas where you want to communicate ongoing processes to the user.

<Tabs> <Tab title="Usage">
jsx
import { CircularProgressBar } from "@/ui/feedback/progress-bar/components/CircularProgressBar";

export const MyComponent = () => {
  return <CircularProgressBar size={80} barWidth={6} barColor="green" />;
};
</Tab> <Tab title="Props">
PropsTypeDescriptionDefault
sizenumberThe size of the circular progress bar50
barWidthnumberThe width of the progress bar line5
barColorstringThe color of the progress barcurrentColor
</Tab> </Tabs>