nextui/apps/docs/content/components/button/loading-custom.ts
2023-05-15 00:03:08 -03:00

43 lines
892 B
TypeScript

const App = `import {Button} from "@nextui-org/react";
export default function App() {
return (
<Button
isLoading
color="secondary"
spinner={
<svg
className="animate-spin h-5 w-5 text-current"
fill="none"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<circle
className="opacity-25"
cx="12"
cy="12"
r="10"
stroke="currentColor"
strokeWidth="4"
/>
<path
className="opacity-75"
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
fill="currentColor"
/>
</svg>
}
>
Loading
</Button>
);
}`;
const react = {
"/App.jsx": App,
};
export default {
...react,
};