mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
40 lines
711 B
TypeScript
40 lines
711 B
TypeScript
const App = `import {Tooltip, Button} from "@nextui-org/react";
|
|
|
|
export default function App() {
|
|
return (
|
|
<Tooltip
|
|
content="I am a tooltip"
|
|
delay={0}
|
|
closeDelay={0}
|
|
motionProps={{
|
|
variants: {
|
|
exit: {
|
|
opacity: 0,
|
|
transition: {
|
|
duration: 0.1,
|
|
ease: "easeIn",
|
|
}
|
|
},
|
|
enter: {
|
|
opacity: 1,
|
|
transition: {
|
|
duration: 0.15,
|
|
ease: "easeOut",
|
|
}
|
|
},
|
|
},
|
|
}}
|
|
>
|
|
<Button variant="flat">Hover me</Button>
|
|
</Tooltip>
|
|
);
|
|
}`;
|
|
|
|
const react = {
|
|
"/App.jsx": App,
|
|
};
|
|
|
|
export default {
|
|
...react,
|
|
};
|