prompt
stringlengths
427
9.09k
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Table can be described as A responsive table component. .Generate a Table. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "@/components/ui/table" const invoices = [ { invoice: "INV001", paymentStatus: "Paid", totalAmount: "$250.00", paymentMethod: "Credit Card", }, { invoice: "INV002", paymentStatus: "Pending", totalAmount: "$150.00", paymentMethod: "PayPal", }, { invoice: "INV003", paymentStatus: "Unpaid", totalAmount: "$350.00", paymentMethod: "Bank Transfer", }, { invoice: "INV004", paymentStatus: "Paid", totalAmount: "$450.00", paymentMethod: "Credit Card", }, { invoice: "INV005", paymentStatus: "Paid", totalAmount: "$550.00", paymentMethod: "PayPal", }, { invoice: "INV006", paymentStatus: "Pending", totalAmount: "$200.00", paymentMethod: "Bank Transfer", }, { invoice: "INV007", paymentStatus: "Unpaid", totalAmount: "$300.00", paymentMethod: "Credit Card", }, ] export function TableDemo() { return ( <Table> <TableCaption>A list of your recent invoices.</TableCaption> <TableHeader> <TableRow> <TableHead className="w-[100px]">Invoice</TableHead> <TableHead>Status</TableHead> <TableHead>Method</TableHead> <TableHead className="text-right">Amount</TableHead> </TableRow> </TableHeader> <TableBody> {invoices.map((invoice) => ( <TableRow key={invoice.invoice}> <TableCell className="font-medium">{invoice.invoice}</TableCell> <TableCell>{invoice.paymentStatus}</TableCell> <TableCell>{invoice.paymentMethod}</TableCell> <TableCell className="text-right">{invoice.totalAmount}</TableCell> </TableRow> ))} </TableBody> <TableFooter> <TableRow> <TableCell colSpan={3}>Total</TableCell> <TableCell className="text-right">$2,500.00</TableCell> </TableRow> </TableFooter> </Table> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Tabs can be described as A set of layered sections of content鈥攌nown as tab panels鈥攖hat are displayed one at a time. .Generate a Tabs. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Button } from "@/components/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/components/ui/card" import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" import { Tabs, TabsContent, TabsList, TabsTrigger, } from "@/components/ui/tabs" export function TabsDemo() { return ( <Tabs defaultValue="account" className="w-[400px]"> <TabsList className="grid w-full grid-cols-2"> <TabsTrigger value="account">Account</TabsTrigger> <TabsTrigger value="password">Password</TabsTrigger> </TabsList> <TabsContent value="account"> <Card> <CardHeader> <CardTitle>Account</CardTitle> <CardDescription> Make changes to your account here. Click save when you're done. </CardDescription> </CardHeader> <CardContent className="space-y-2"> <div className="space-y-1"> <Label htmlFor="name">Name</Label> <Input id="name" defaultValue="Pedro Duarte" /> </div> <div className="space-y-1"> <Label htmlFor="username">Username</Label> <Input id="username" defaultValue="@peduarte" /> </div> </CardContent> <CardFooter> <Button>Save changes</Button> </CardFooter> </Card> </TabsContent> <TabsContent value="password"> <Card> <CardHeader> <CardTitle>Password</CardTitle> <CardDescription> Change your password here. After saving, you'll be logged out. </CardDescription> </CardHeader> <CardContent className="space-y-2"> <div className="space-y-1"> <Label htmlFor="current">Current password</Label> <Input id="current" type="password" /> </div> <div className="space-y-1"> <Label htmlFor="new">New password</Label> <Input id="new" type="password" /> </div> </CardContent> <CardFooter> <Button>Save password</Button> </CardFooter> </Card> </TabsContent> </Tabs> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Textarea can be described as Displays a form textarea or a component that looks like a textarea. .Generate a Textarea. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Textarea } from "@/components/ui/textarea" export function TextareaDemo() { return <Textarea placeholder="Type your message here." /> }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Textarea can be described as Displays a form textarea or a component that looks like a textarea. .Generate a Default Textarea. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Textarea } from "@/components/ui/textarea" export function TextareaDemo() { return <Textarea placeholder="Type your message here." /> }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Textarea can be described as Displays a form textarea or a component that looks like a textarea. .Generate a Disabled Textarea. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Textarea } from "@/components/ui/textarea" export function TextareaDisabled() { return <Textarea placeholder="Type your message here." disabled /> }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Textarea can be described as Displays a form textarea or a component that looks like a textarea. .Generate a With Label Textarea. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Label } from "@/components/ui/label" import { Textarea } from "@/components/ui/textarea" export function TextareaWithLabel() { return ( <div className="grid w-full gap-1.5"> <Label htmlFor="message">Your message</Label> <Textarea placeholder="Type your message here." id="message" /> </div> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Textarea can be described as Displays a form textarea or a component that looks like a textarea. .Generate a With Text Textarea. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Label } from "@/components/ui/label" import { Textarea } from "@/components/ui/textarea" export function TextareaWithText() { return ( <div className="grid w-full gap-1.5"> <Label htmlFor="message-2">Your Message</Label> <Textarea placeholder="Type your message here." id="message-2" /> <p className="text-sm text-muted-foreground"> Your message will be copied to the support team. </p> </div> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Textarea can be described as Displays a form textarea or a component that looks like a textarea. .Generate a With Button Textarea. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Button } from "@/components/ui/button" import { Textarea } from "@/components/ui/textarea" export function TextareaWithButton() { return ( <div className="grid w-full gap-2"> <Textarea placeholder="Type your message here." /> <Button>Send message</Button> </div> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Textarea can be described as Displays a form textarea or a component that looks like a textarea. .Generate a Form Textarea. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>"use client" import { zodResolver } from "@hookform/resolvers/zod" import { useForm } from "react-hook-form" import { z } from "zod" import { Button } from "@/components/ui/button" import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, } from "@/components/ui/form" import { Textarea } from "@/components/ui/textarea" import { toast } from "@/components/ui/use-toast" const FormSchema = z.object({ bio: z .string() .min(10, { message: "Bio must be at least 10 characters.", }) .max(160, { message: "Bio must not be longer than 30 characters.", }), }) export function TextareaForm() { const form = useForm<z.infer<typeof FormSchema>>({ resolver: zodResolver(FormSchema), }) function onSubmit(data: z.infer<typeof FormSchema>) { toast({ title: "You submitted the following values:", description: ( <pre className="mt-2 w-[340px] rounded-md bg-slate-950 p-4"> <code className="text-white">{JSON.stringify(data, null, 2)}</code> </pre> ), }) } return ( <Form {...form}> <form onSubmit={form.handleSubmit(onSubmit)} className="w-2/3 space-y-6"> <FormField control={form.control} name="bio" render={({ field }) => ( <FormItem> <FormLabel>Bio</FormLabel> <FormControl> <Textarea placeholder="Tell us a little bit about yourself" className="resize-none" {...field} /> </FormControl> <FormDescription> You can <span>@mention</span> other users and organizations. </FormDescription> <FormMessage /> </FormItem> )} /> <Button type="submit">Submit</Button> </form> </Form> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toast can be described as A succinct message that is displayed temporarily. .Generate a Toast. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>"use client" import { Button } from "@/components/ui/button" import { ToastAction } from "@/components/ui/toast" import { useToast } from "@/components/ui/use-toast" export function ToastDemo() { const { toast } = useToast() return ( <Button variant="outline" onClick={() => { toast({ title: "Scheduled: Catch up ", description: "Friday, February 10, 2023 at 5:57 PM", action: ( <ToastAction altText="Goto schedule to undo">Undo</ToastAction> ), }) }} > Add to calendar </Button> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toast can be described as A succinct message that is displayed temporarily. .Generate a Run the following command: Toast. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>npx shadcn-ui@latest add toast<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toast can be described as A succinct message that is displayed temporarily. .Generate a Add the Toaster component Toast. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Toaster } from "@/components/ui/toaster" export default function RootLayout({ children }) { return ( <html lang="en"> <head /> <body> <main>{children}</main> <Toaster /> </body> </html> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toast can be described as A succinct message that is displayed temporarily. .Generate a Simple Toast. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>"use client" import { Button } from "@/components/ui/button" import { useToast } from "@/components/ui/use-toast" export function ToastSimple() { const { toast } = useToast() return ( <Button variant="outline" onClick={() => { toast({ description: "Your message has been sent.", }) }} > Show Toast </Button> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toast can be described as A succinct message that is displayed temporarily. .Generate a With title Toast. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>"use client" import { Button } from "@/components/ui/button" import { useToast } from "@/components/ui/use-toast" export function ToastWithTitle() { const { toast } = useToast() return ( <Button variant="outline" onClick={() => { toast({ title: "Uh oh! Something went wrong.", description: "There was a problem with your request.", }) }} > Show Toast </Button> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toast can be described as A succinct message that is displayed temporarily. .Generate a With Action Toast. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>"use client" import { Button } from "@/components/ui/button" import { ToastAction } from "@/components/ui/toast" import { useToast } from "@/components/ui/use-toast" export function ToastWithAction() { const { toast } = useToast() return ( <Button variant="outline" onClick={() => { toast({ title: "Uh oh! Something went wrong.", description: "There was a problem with your request.", action: <ToastAction altText="Try again">Try again</ToastAction>, }) }} > Show Toast </Button> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle can be described as A two-state button that can be either on or off. .Generate a Toggle. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Bold } from "lucide-react" import { Toggle } from "@/components/ui/toggle" export function ToggleDemo() { return ( <Toggle aria-label="Toggle bold"> <Bold className="h-4 w-4" /> </Toggle> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle can be described as A two-state button that can be either on or off. .Generate a Default Toggle. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Bold } from "lucide-react" import { Toggle } from "@/components/ui/toggle" export function ToggleDemo() { return ( <Toggle aria-label="Toggle bold"> <Bold className="h-4 w-4" /> </Toggle> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle can be described as A two-state button that can be either on or off. .Generate a Outline Toggle. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Italic } from "lucide-react" import { Toggle } from "@/components/ui/toggle" export function ToggleOutline() { return ( <Toggle variant="outline" aria-label="Toggle italic"> <Italic className="h-4 w-4" /> </Toggle> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle can be described as A two-state button that can be either on or off. .Generate a With Text Toggle. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Italic } from "lucide-react" import { Toggle } from "@/components/ui/toggle" export function ToggleWithText() { return ( <Toggle aria-label="Toggle italic"> <Italic className="mr-2 h-4 w-4" /> Italic </Toggle> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle can be described as A two-state button that can be either on or off. .Generate a Small Toggle. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Italic } from "lucide-react" import { Toggle } from "@/components/ui/toggle" export function ToggleSm() { return ( <Toggle size="sm" aria-label="Toggle italic"> <Italic className="h-4 w-4" /> </Toggle> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle can be described as A two-state button that can be either on or off. .Generate a Large Toggle. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Italic } from "lucide-react" import { Toggle } from "@/components/ui/toggle" export function ToggleLg() { return ( <Toggle size="lg" aria-label="Toggle italic"> <Italic className="h-4 w-4" /> </Toggle> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle can be described as A two-state button that can be either on or off. .Generate a Disabled Toggle. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Underline } from "lucide-react" import { Toggle } from "@/components/ui/toggle" export function ToggleDisabled() { return ( <Toggle aria-label="Toggle underline" disabled> <Underline className="h-4 w-4" /> </Toggle> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle Group can be described as A set of two-state buttons that can be toggled on or off. .Generate a Toggle Group. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Bold, Italic, Underline } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/components/ui/toggle-group" export function ToggleGroupDemo() { return ( <ToggleGroup type="multiple"> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bold className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="italic" aria-label="Toggle italic"> <Italic className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="underline" aria-label="Toggle underline"> <Underline className="h-4 w-4" /> </ToggleGroupItem> </ToggleGroup> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle Group can be described as A set of two-state buttons that can be toggled on or off. .Generate a Default Toggle Group. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Bold, Italic, Underline } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/components/ui/toggle-group" export function ToggleGroupDemo() { return ( <ToggleGroup type="multiple"> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bold className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="italic" aria-label="Toggle italic"> <Italic className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="underline" aria-label="Toggle underline"> <Underline className="h-4 w-4" /> </ToggleGroupItem> </ToggleGroup> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle Group can be described as A set of two-state buttons that can be toggled on or off. .Generate a Outline Toggle Group. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Bold, Italic, Underline } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/components/ui/toggle-group" export function ToggleGroupDemo() { return ( <ToggleGroup variant="outline" type="multiple"> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bold className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="italic" aria-label="Toggle italic"> <Italic className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="underline" aria-label="Toggle underline"> <Underline className="h-4 w-4" /> </ToggleGroupItem> </ToggleGroup> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle Group can be described as A set of two-state buttons that can be toggled on or off. .Generate a Single Toggle Group. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Bold, Italic, Underline } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/components/ui/toggle-group" export function ToggleGroupDemo() { return ( <ToggleGroup type="single"> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bold className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="italic" aria-label="Toggle italic"> <Italic className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="underline" aria-label="Toggle underline"> <Underline className="h-4 w-4" /> </ToggleGroupItem> </ToggleGroup> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle Group can be described as A set of two-state buttons that can be toggled on or off. .Generate a Small Toggle Group. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Bold, Italic, Underline } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/components/ui/toggle-group" export function ToggleGroupDemo() { return ( <ToggleGroup size={"sm"} type="multiple"> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bold className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="italic" aria-label="Toggle italic"> <Italic className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="underline" aria-label="Toggle underline"> <Underline className="h-4 w-4" /> </ToggleGroupItem> </ToggleGroup> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle Group can be described as A set of two-state buttons that can be toggled on or off. .Generate a Large Toggle Group. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Bold, Italic, Underline } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/components/ui/toggle-group" export function ToggleGroupDemo() { return ( <ToggleGroup size={"lg"} type="multiple"> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bold className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="italic" aria-label="Toggle italic"> <Italic className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="underline" aria-label="Toggle underline"> <Underline className="h-4 w-4" /> </ToggleGroupItem> </ToggleGroup> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Toggle Group can be described as A set of two-state buttons that can be toggled on or off. .Generate a Disabled Toggle Group. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Bold, Italic, Underline } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/components/ui/toggle-group" export function ToggleGroupDemo() { return ( <ToggleGroup disabled type="single"> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bold className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="italic" aria-label="Toggle italic"> <Italic className="h-4 w-4" /> </ToggleGroupItem> <ToggleGroupItem value="underline" aria-label="Toggle underline"> <Underline className="h-4 w-4" /> </ToggleGroupItem> </ToggleGroup> ) }<|eot_id|>
<|begin_of_text|><|start_header_id|>system<|end_header_id|>You are an amazing UI expert who can learn and create complex UI<|eot_id|><|start_header_id|>user<|end_header_id|>Tooltip can be described as A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it. .Generate a Tooltip. Return ONLY code. DO NOT give explanations<|eot_id|><|start_header_id|>assistant<|end_header_id|>import { Button } from "@/components/ui/button" import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from "@/components/ui/tooltip" export function TooltipDemo() { return ( <TooltipProvider> <Tooltip> <TooltipTrigger asChild> <Button variant="outline">Hover</Button> </TooltipTrigger> <TooltipContent> <p>Add to library</p> </TooltipContent> </Tooltip> </TooltipProvider> ) }<|eot_id|>