mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
41 lines
777 B
TypeScript
41 lines
777 B
TypeScript
const App = `import { Tooltip, Grid, Link } from "@nextui-org/react";
|
|
|
|
export default function App() {
|
|
return (
|
|
<Grid.Container gap={2}>
|
|
<Grid>
|
|
<Tooltip
|
|
content={"Developers love Next.js"}
|
|
trigger="click"
|
|
color="primary"
|
|
>
|
|
<Card variant="flat">
|
|
<Link>
|
|
Click me
|
|
</Link>
|
|
</Card>
|
|
</Tooltip>
|
|
</Grid>
|
|
<Grid>
|
|
<Tooltip
|
|
content={"Developers love Next.js"}
|
|
trigger="hover"
|
|
color="secondary"
|
|
>
|
|
<Button auto flat color="secondary">
|
|
Hover me
|
|
</Button>
|
|
</Tooltip>
|
|
</Grid>
|
|
</Grid.Container>
|
|
);
|
|
}`;
|
|
|
|
const react = {
|
|
'/App.js': App
|
|
};
|
|
|
|
export default {
|
|
...react
|
|
};
|