mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
41 lines
1.0 KiB
TypeScript
41 lines
1.0 KiB
TypeScript
const App = `import {CircularProgress, Card, CardBody, CardFooter, Chip} from "@nextui-org/react";
|
|
|
|
export default function App() {
|
|
return (
|
|
<Card className="w-[240px] h-[240px] border-none bg-gradient-to-br from-violet-500 to-fuchsia-500">
|
|
<CardBody className="justify-center items-center pb-0">
|
|
<CircularProgress
|
|
classNames={{
|
|
svg: "w-36 h-36 drop-shadow-md",
|
|
indicator: "stroke-white",
|
|
track: "stroke-white/10",
|
|
value: "text-3xl font-semibold text-white",
|
|
}}
|
|
value={70}
|
|
strokeWidth={4}
|
|
showValueLabel={true}
|
|
/>
|
|
</CardBody>
|
|
<CardFooter className="justify-center items-center pt-0">
|
|
<Chip
|
|
classNames={{
|
|
base: "border-1 border-white/30",
|
|
content: "text-white/90 text-sm font-semibold",
|
|
}}
|
|
variant="bordered"
|
|
>
|
|
2800 Data points
|
|
</Chip>
|
|
</CardFooter>
|
|
</Card>
|
|
);
|
|
}`;
|
|
|
|
const react = {
|
|
"/App.jsx": App,
|
|
};
|
|
|
|
export default {
|
|
...react,
|
|
};
|