mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
26 lines
511 B
TypeScript
26 lines
511 B
TypeScript
const App = `import {Input} from "@nextui-org/react";
|
|
|
|
export default function App() {
|
|
const [value, setValue] = React.useState("");
|
|
|
|
return (
|
|
<div className="w-full flex flex-col gap-2 max-w-[240px]">
|
|
<Input
|
|
label="Email"
|
|
placeholder="Enter your email"
|
|
value={value}
|
|
onValueChange={setValue}
|
|
/>
|
|
<p className="text-default-500 text-sm">Input value: {value}</p>
|
|
</div>
|
|
);
|
|
}`;
|
|
|
|
const react = {
|
|
"/App.jsx": App,
|
|
};
|
|
|
|
export default {
|
|
...react,
|
|
};
|