mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
57 lines
1.6 KiB
TypeScript
57 lines
1.6 KiB
TypeScript
import {
|
|
Dialog,
|
|
DialogTrigger,
|
|
DialogOverlay,
|
|
DialogContent,
|
|
DialogHeader,
|
|
DialogTitle,
|
|
DialogDescription,
|
|
ScrollArea,
|
|
ScrollAreaContent,
|
|
Scrollbar,
|
|
Text,
|
|
Portal,
|
|
} from "@lcui/react";
|
|
|
|
export default function Example() {
|
|
return (
|
|
<Dialog>
|
|
<DialogTrigger>Scrollable Content</DialogTrigger>
|
|
<Portal>
|
|
<DialogOverlay>
|
|
<DialogContent>
|
|
<DialogHeader>
|
|
<DialogTitle>Scrollable Content</DialogTitle>
|
|
<DialogDescription>
|
|
This is a dialog with scrollable content.
|
|
</DialogDescription>
|
|
</DialogHeader>
|
|
<ScrollArea className="h-50">
|
|
<ScrollAreaContent>
|
|
<Text>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</Text>
|
|
<Text>
|
|
Sed do eiusmod tempor incididunt ut labore et dolore magna
|
|
aliqua.
|
|
</Text>
|
|
<Text>
|
|
Ut enim ad minim veniam, quis nostrud exercitation ullamco
|
|
laboris.
|
|
</Text>
|
|
<Text>
|
|
Duis aute irure dolor in reprehenderit in voluptate velit
|
|
esse cillum dolore.
|
|
</Text>
|
|
<Text>
|
|
Excepteur sint occaecat cupidatat non proident, sunt in culpa
|
|
qui officia deserunt mollit anim id est laborum.
|
|
</Text>
|
|
</ScrollAreaContent>
|
|
<Scrollbar />
|
|
</ScrollArea>
|
|
</DialogContent>
|
|
</DialogOverlay>
|
|
</Portal>
|
|
</Dialog>
|
|
);
|
|
}
|