Aller au contenu principal

CircularProgress Component

Description

The CircularProgress component displays a rotating loader, commonly used to indicate an ongoing operation.

Props

PropTypeDefaultDescription
sizenumber40Diameter of the spinner (in pixels).
thicknessnumber4Thickness of the circular border.
colorstringtheme.palette.primary.mainSpinner color.
trackColorstringtheme.palette.text.primaryBackground track color.
speednumber1.2Speed of rotation (in seconds per full spin).

Example Usage

import { CircularProgress } from "@nomana-it/liberty-core"

export const CircularProgressExample = () => {
return (
<div style={{ display: "flex", gap: "16px" }}>
<CircularProgress size={40} />
<CircularProgress size={50} thickness={5} color="#ff4081" />
<CircularProgress size={60} thickness={6} trackColor="gray" speed={2} />
</div>
);
};

🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core