mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
32 lines
658 B
TypeScript
32 lines
658 B
TypeScript
const App = `import { Switch, Grid } from "@nextui-org/react";
|
|
|
|
export default function App() {
|
|
return (
|
|
<Grid.Container gap={2}>
|
|
<Grid>
|
|
<Switch shadow color="primary" checked={true} />
|
|
</Grid>
|
|
<Grid>
|
|
<Switch shadow color="secondary" checked={true} />
|
|
</Grid>
|
|
<Grid>
|
|
<Switch shadow color="success" checked={true} />
|
|
</Grid>
|
|
<Grid>
|
|
<Switch shadow color="warning" checked={true} />
|
|
</Grid>
|
|
<Grid>
|
|
<Switch shadow color="error" checked={true} />
|
|
</Grid>
|
|
</Grid.Container>
|
|
);
|
|
}`;
|
|
|
|
const react = {
|
|
"/App.js": App,
|
|
};
|
|
|
|
export default {
|
|
...react,
|
|
};
|