repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/typography-p.tsx
apps/v4/registry/new-york-v4/examples/typography-p.tsx
export default function TypographyP() { return ( <p className="leading-7 [&:not(:first-child)]:mt-6"> The king, seeing how much happier his subjects were, realized the error of his ways and repealed the joke tax. </p> ) }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/input-group-icon.tsx
apps/v4/registry/new-york-v4/examples/input-group-icon.tsx
import { CheckIcon, CreditCardIcon, InfoIcon, MailIcon, SearchIcon, StarIcon, } from "lucide-react" import { InputGroup, InputGroupAddon, InputGroupInput, } from "@/registry/new-york-v4/ui/input-group" export default function InputGroupIcon() { return ( <div className="grid w-full max-w-sm gap...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/sonner-types.tsx
apps/v4/registry/new-york-v4/examples/sonner-types.tsx
"use client" import { toast } from "sonner" import { Button } from "@/registry/new-york-v4/ui/button" export default function SonnerTypes() { return ( <div className="flex flex-wrap gap-2"> <Button variant="outline" onClick={() => toast("Event has been created")}> Default </Button> <B...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/resizable-demo-with-handle.tsx
apps/v4/registry/new-york-v4/examples/resizable-demo-with-handle.tsx
import { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from "@/registry/new-york-v4/ui/resizable" export default function ResizableDemo() { return ( <ResizablePanelGroup direction="horizontal" className="max-w-md rounded-lg border md:min-w-[450px]" > <ResizablePanel defaultS...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/carousel-api.tsx
apps/v4/registry/new-york-v4/examples/carousel-api.tsx
"use client" import * as React from "react" import { Card, CardContent } from "@/registry/new-york-v4/ui/card" import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type CarouselApi, } from "@/registry/new-york-v4/ui/carousel" export default function CarouselDApiDemo() { con...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/toggle-sm.tsx
apps/v4/registry/new-york-v4/examples/toggle-sm.tsx
import { Italic } from "lucide-react" import { Toggle } from "@/registry/new-york-v4/ui/toggle" export default function ToggleSm() { return ( <Toggle size="sm" aria-label="Toggle italic"> <Italic /> </Toggle> ) }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/navigation-menu-demo.tsx
apps/v4/registry/new-york-v4/examples/navigation-menu-demo.tsx
"use client" import * as React from "react" import Link from "next/link" import { CircleCheckIcon, CircleHelpIcon, CircleIcon } from "lucide-react" import { useIsMobile } from "@/registry/new-york-v4/hooks/use-mobile" import { NavigationMenu, NavigationMenuContent, NavigationMenuItem, NavigationMenuLink, Na...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/button-default.tsx
apps/v4/registry/new-york-v4/examples/button-default.tsx
import { Button } from "@/registry/new-york-v4/ui/button" export default function ButtonDefault() { return <Button>Button</Button> }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-tanstack-switch.tsx
apps/v4/registry/new-york-v4/examples/form-tanstack-switch.tsx
/* eslint-disable react/no-children-prop */ "use client" import { useForm } from "@tanstack/react-form" import { toast } from "sonner" import * as z from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/input-otp-controlled.tsx
apps/v4/registry/new-york-v4/examples/input-otp-controlled.tsx
"use client" import * as React from "react" import { InputOTP, InputOTPGroup, InputOTPSlot, } from "@/registry/new-york-v4/ui/input-otp" export default function InputOTPControlled() { const [value, setValue] = React.useState("") return ( <div className="space-y-2"> <InputOTP maxLength={6...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/hover-card-demo.tsx
apps/v4/registry/new-york-v4/examples/hover-card-demo.tsx
import { CalendarIcon } from "lucide-react" import { Avatar, AvatarFallback, AvatarImage, } from "@/registry/new-york-v4/ui/avatar" import { Button } from "@/registry/new-york-v4/ui/button" import { HoverCard, HoverCardContent, HoverCardTrigger, } from "@/registry/new-york-v4/ui/hover-card" export default...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/tabs-demo.tsx
apps/v4/registry/new-york-v4/examples/tabs-demo.tsx
import { AppWindowIcon, CodeIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Input } from "@/registry/new-york-v4/ui/input" import { Label } f...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/textarea-demo.tsx
apps/v4/registry/new-york-v4/examples/textarea-demo.tsx
import { Textarea } from "@/registry/new-york-v4/ui/textarea" export default function TextareaDemo() { return <Textarea placeholder="Type your message here." /> }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/spinner-custom.tsx
apps/v4/registry/new-york-v4/examples/spinner-custom.tsx
import { LoaderIcon } from "lucide-react" import { cn } from "@/lib/utils" function Spinner({ className, ...props }: React.ComponentProps<"svg">) { return ( <LoaderIcon role="status" aria-label="Loading" className={cn("size-4 animate-spin", className)} {...props} /> ) } export def...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/empty-outline.tsx
apps/v4/registry/new-york-v4/examples/empty-outline.tsx
import { IconCloud } from "@tabler/icons-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "@/registry/new-york-v4/ui/empty" export default function EmptyOutline() { return ( <Empty className="...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/chart-bar-demo-grid.tsx
apps/v4/registry/new-york-v4/examples/chart-bar-demo-grid.tsx
"use client" import { Bar, BarChart, CartesianGrid } from "recharts" import { ChartContainer, type ChartConfig, } from "@/registry/new-york-v4/ui/chart" const chartData = [ { month: "January", desktop: 186, mobile: 80 }, { month: "February", desktop: 305, mobile: 200 }, { month: "March", desktop: 237, mobi...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/menubar-demo.tsx
apps/v4/registry/new-york-v4/examples/menubar-demo.tsx
import { Menubar, MenubarCheckboxItem, MenubarContent, MenubarItem, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, } from "@/registry/new-york-v4/ui/menubar" export default function Menubar...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/spinner-demo.tsx
apps/v4/registry/new-york-v4/examples/spinner-demo.tsx
import { Item, ItemContent, ItemMedia, ItemTitle, } from "@/registry/new-york-v4/ui/item" import { Spinner } from "@/registry/new-york-v4/ui/spinner" export default function SpinnerDemo() { return ( <div className="flex w-full max-w-xs flex-col gap-4 [--radius:1rem]"> <Item variant="muted"> ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/textarea-with-button.tsx
apps/v4/registry/new-york-v4/examples/textarea-with-button.tsx
import { Button } from "@/registry/new-york-v4/ui/button" import { Textarea } from "@/registry/new-york-v4/ui/textarea" export default function TextareaWithButton() { return ( <div className="grid w-full gap-2"> <Textarea placeholder="Type your message here." /> <Button>Send message</Button> </di...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/input-otp-separator.tsx
apps/v4/registry/new-york-v4/examples/input-otp-separator.tsx
import React from "react" import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, } from "@/registry/new-york-v4/ui/input-otp" export default function InputOTPWithSeparator() { return ( <InputOTP maxLength={6}> <InputOTPGroup> <InputOTPSlot index={0} /> <InputOTPSlot ind...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/spinner-input-group.tsx
apps/v4/registry/new-york-v4/examples/spinner-input-group.tsx
import { ArrowUpIcon } from "lucide-react" import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupTextarea, } from "@/registry/new-york-v4/ui/input-group" import { Spinner } from "@/registry/new-york-v4/ui/spinner" export default function SpinnerInputGroup() { return ( <div...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/spinner-color.tsx
apps/v4/registry/new-york-v4/examples/spinner-color.tsx
import { Spinner } from "@/registry/new-york-v4/ui/spinner" export default function SpinnerColor() { return ( <div className="flex items-center gap-6"> <Spinner className="size-6 text-red-500" /> <Spinner className="size-6 text-green-500" /> <Spinner className="size-6 text-blue-500" /> <S...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/input-group-text.tsx
apps/v4/registry/new-york-v4/examples/input-group-text.tsx
import { InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea, } from "@/registry/new-york-v4/ui/input-group" export default function InputGroupTextExample() { return ( <div className="grid w-full max-w-sm gap-6"> <InputGroup> <InputGroupAddon> <Input...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/field-select.tsx
apps/v4/registry/new-york-v4/examples/field-select.tsx
import { Field, FieldDescription, FieldLabel, } from "@/registry/new-york-v4/ui/field" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/registry/new-york-v4/ui/select" export default function FieldSelect() { return ( <div className="w-full max-w-md"> <Field>...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/input-group-dropdown.tsx
apps/v4/registry/new-york-v4/examples/input-group-dropdown.tsx
import { ChevronDownIcon, MoreHorizontal } from "lucide-react" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/registry/new-york-v4/ui/dropdown-menu" import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from "@/registry/new-york-v4/ui/i...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/toggle-group-sm.tsx
apps/v4/registry/new-york-v4/examples/toggle-group-sm.tsx
import { Bold, Italic, Underline } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/registry/new-york-v4/ui/toggle-group" export default function ToggleGroupDemo() { return ( <ToggleGroup type="single" size="sm"> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bold...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/button-group-dropdown.tsx
apps/v4/registry/new-york-v4/examples/button-group-dropdown.tsx
"use client" import { AlertTriangleIcon, CheckIcon, ChevronDownIcon, CopyIcon, ShareIcon, TrashIcon, UserRoundXIcon, VolumeOffIcon, } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { ButtonGroup } from "@/registry/new-york-v4/ui/button-group" import { DropdownMe...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/input-with-text.tsx
apps/v4/registry/new-york-v4/examples/input-with-text.tsx
import { Input } from "@/registry/new-york-v4/ui/input" import { Label } from "@/registry/new-york-v4/ui/label" export default function InputWithText() { return ( <div className="grid w-full max-w-sm items-center gap-3"> <Label htmlFor="email-2">Email</Label> <Input type="email" id="email-2" placehol...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/table-demo.tsx
apps/v4/registry/new-york-v4/examples/table-demo.tsx
import { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "@/registry/new-york-v4/ui/table" const invoices = [ { invoice: "INV001", paymentStatus: "Paid", totalAmount: "$250.00", paymentMethod: "Credit Card", }, { invoice: "INV00...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/card-with-form.tsx
apps/v4/registry/new-york-v4/examples/card-with-form.tsx
import * as React from "react" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Input } from "@/registry/new-york-v4/ui/input" import { Label } from "@/registry/new-york...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-rhf-textarea.tsx
apps/v4/registry/new-york-v4/examples/form-rhf-textarea.tsx
"use client" import * as React from "react" import { zodResolver } from "@hookform/resolvers/zod" import { Controller, useForm } from "react-hook-form" import { toast } from "sonner" import * as z from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-rhf-select.tsx
apps/v4/registry/new-york-v4/examples/form-rhf-select.tsx
"use client" import * as React from "react" import { zodResolver } from "@hookform/resolvers/zod" import { Controller, useForm } from "react-hook-form" import { toast } from "sonner" import * as z from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/textarea-with-text.tsx
apps/v4/registry/new-york-v4/examples/textarea-with-text.tsx
import { Label } from "@/registry/new-york-v4/ui/label" import { Textarea } from "@/registry/new-york-v4/ui/textarea" export default function TextareaWithText() { return ( <div className="grid w-full gap-3"> <Label htmlFor="message-2">Your Message</Label> <Textarea placeholder="Type your message here...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/field-radio.tsx
apps/v4/registry/new-york-v4/examples/field-radio.tsx
import { Field, FieldDescription, FieldLabel, FieldSet, } from "@/registry/new-york-v4/ui/field" import { RadioGroup, RadioGroupItem, } from "@/registry/new-york-v4/ui/radio-group" export default function FieldRadio() { return ( <div className="w-full max-w-md"> <FieldSet> <FieldLabel>S...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/breadcrumb-ellipsis.tsx
apps/v4/registry/new-york-v4/examples/breadcrumb-ellipsis.tsx
import Link from "next/link" import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/registry/new-york-v4/ui/breadcrumb" export default function BreadcrumbCollapsed() { return ( <Breadcrumb> <BreadcrumbList> ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/toggle-demo.tsx
apps/v4/registry/new-york-v4/examples/toggle-demo.tsx
import { BookmarkIcon } from "lucide-react" import { Toggle } from "@/registry/new-york-v4/ui/toggle" export default function ToggleDemo() { return ( <Toggle aria-label="Toggle bookmark" size="sm" variant="outline" className="data-[state=on]:bg-transparent data-[state=on]:*:[svg]:fill-bl...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/context-menu-demo.tsx
apps/v4/registry/new-york-v4/examples/context-menu-demo.tsx
import { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "@/registry/new...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/switch-demo.tsx
apps/v4/registry/new-york-v4/examples/switch-demo.tsx
import { Label } from "@/registry/new-york-v4/ui/label" import { Switch } from "@/registry/new-york-v4/ui/switch" export default function SwitchDemo() { return ( <div className="flex items-center space-x-2"> <Switch id="airplane-mode" /> <Label htmlFor="airplane-mode">Airplane Mode</Label> </div>...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/input-group-demo.tsx
apps/v4/registry/new-york-v4/examples/input-group-demo.tsx
import { IconCheck, IconInfoCircle, IconPlus } from "@tabler/icons-react" import { ArrowUpIcon, Search } from "lucide-react" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/registry/new-york-v4/ui/dropdown-menu" import { InputGroup, InputGroupAddon, InputGroup...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/drawer-demo.tsx
apps/v4/registry/new-york-v4/examples/drawer-demo.tsx
"use client" import * as React from "react" import { Minus, Plus } from "lucide-react" import { Bar, BarChart, ResponsiveContainer } from "recharts" import { Button } from "@/registry/new-york-v4/ui/button" import { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, Drawe...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/scroll-area-demo.tsx
apps/v4/registry/new-york-v4/examples/scroll-area-demo.tsx
import * as React from "react" import { ScrollArea } from "@/registry/new-york-v4/ui/scroll-area" import { Separator } from "@/registry/new-york-v4/ui/separator" const tags = Array.from({ length: 50 }).map( (_, i, a) => `v1.2.0-beta.${a.length - i}` ) export default function ScrollAreaDemo() { return ( <Scro...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/item-group.tsx
apps/v4/registry/new-york-v4/examples/item-group.tsx
import * as React from "react" import { PlusIcon } from "lucide-react" import { Avatar, AvatarFallback, AvatarImage, } from "@/registry/new-york-v4/ui/avatar" import { Button } from "@/registry/new-york-v4/ui/button" import { Item, ItemActions, ItemContent, ItemDescription, ItemGroup, ItemMedia, It...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/button-group-split.tsx
apps/v4/registry/new-york-v4/examples/button-group-split.tsx
import { IconPlus } from "@tabler/icons-react" import { Button } from "@/registry/new-york-v4/ui/button" import { ButtonGroup, ButtonGroupSeparator, } from "@/registry/new-york-v4/ui/button-group" export default function ButtonGroupSplit() { return ( <ButtonGroup> <Button variant="secondary">Button</B...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/button-loading.tsx
apps/v4/registry/new-york-v4/examples/button-loading.tsx
import { Button } from "@/registry/new-york-v4/ui/button" import { Spinner } from "@/registry/new-york-v4/ui/spinner" export default function ButtonLoading() { return ( <Button size="sm" variant="outline" disabled> <Spinner /> Submit </Button> ) }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/_registry.ts
apps/v4/registry/new-york-v4/examples/_registry.ts
import { type Registry } from "shadcn/schema" export const examples: Registry["items"] = [ { name: "accordion-demo", type: "registry:example", registryDependencies: ["accordion"], files: [ { path: "examples/accordion-demo.tsx", type: "registry:example", }, ], }, { ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
true
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/aspect-ratio-demo.tsx
apps/v4/registry/new-york-v4/examples/aspect-ratio-demo.tsx
import Image from "next/image" import { AspectRatio } from "@/registry/new-york-v4/ui/aspect-ratio" export default function AspectRatioDemo() { return ( <AspectRatio ratio={16 / 9} className="bg-muted rounded-lg"> <Image src="https://images.unsplash.com/photo-1588345921523-c2dcdb7f1dcd?w=800&dpr=2...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/dropdown-menu-demo.tsx
apps/v4/registry/new-york-v4/examples/dropdown-menu-demo.tsx
import { Button } from "@/registry/new-york-v4/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, Dropdown...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/select-scrollable.tsx
apps/v4/registry/new-york-v4/examples/select-scrollable.tsx
import * as React from "react" import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue, } from "@/registry/new-york-v4/ui/select" export default function SelectScrollable() { return ( <Select> <SelectTrigger className="w-[280px]"> <SelectValue...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/input-group-button-group.tsx
apps/v4/registry/new-york-v4/examples/input-group-button-group.tsx
import { Link2Icon } from "lucide-react" import { ButtonGroup, ButtonGroupText, } from "@/registry/new-york-v4/ui/button-group" import { InputGroup, InputGroupAddon, InputGroupInput, } from "@/registry/new-york-v4/ui/input-group" import { Label } from "@/registry/new-york-v4/ui/label" export default functio...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/input-group-button.tsx
apps/v4/registry/new-york-v4/examples/input-group-button.tsx
"use client" import * as React from "react" import { IconCheck, IconCopy, IconInfoCircle, IconStar, } from "@tabler/icons-react" import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard" import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from "@/registry/new-york-v4/ui...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/field-slider.tsx
apps/v4/registry/new-york-v4/examples/field-slider.tsx
"use client" import { useState } from "react" import { Field, FieldDescription, FieldTitle, } from "@/registry/new-york-v4/ui/field" import { Slider } from "@/registry/new-york-v4/ui/slider" export default function FieldSlider() { const [value, setValue] = useState([200, 800]) return ( <div className="...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-tanstack-textarea.tsx
apps/v4/registry/new-york-v4/examples/form-tanstack-textarea.tsx
/* eslint-disable react/no-children-prop */ "use client" import { useForm } from "@tanstack/react-form" import { toast } from "sonner" import * as z from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/dropdown-menu-radio-group.tsx
apps/v4/registry/new-york-v4/examples/dropdown-menu-radio-group.tsx
"use client" import * as React from "react" import { Button } from "@/registry/new-york-v4/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuTrigger, } from "@/registry/new-york-v4/ui/dropdown-menu"...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-tanstack-radiogroup.tsx
apps/v4/registry/new-york-v4/examples/form-tanstack-radiogroup.tsx
/* eslint-disable react/no-children-prop */ "use client" import { useForm } from "@tanstack/react-form" import { toast } from "sonner" import * as z from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-tanstack-input.tsx
apps/v4/registry/new-york-v4/examples/form-tanstack-input.tsx
/* eslint-disable react/no-children-prop */ "use client" import { useForm } from "@tanstack/react-form" import { toast } from "sonner" import * as z from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-next-complex-schema.ts
apps/v4/registry/new-york-v4/examples/form-next-complex-schema.ts
import { z } from "zod" export const formSchema = z.object({ plan: z .string({ required_error: "Please select a subscription plan", }) .min(1, "Please select a subscription plan") .refine((value) => value === "basic" || value === "pro", { message: "Invalid plan selection. Please choose Ba...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/typography-table.tsx
apps/v4/registry/new-york-v4/examples/typography-table.tsx
export default function TypographyTable() { return ( <div className="my-6 w-full overflow-y-auto"> <table className="w-full"> <thead> <tr className="even:bg-muted m-0 border-t p-0"> <th className="border px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/button-demo.tsx
apps/v4/registry/new-york-v4/examples/button-demo.tsx
import { ArrowUpIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" export default function ButtonDemo() { return ( <div className="flex flex-wrap items-center gap-2 md:flex-row"> <Button variant="outline">Button</Button> <Button variant="outline" size="icon" aria-la...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/calendar-demo.tsx
apps/v4/registry/new-york-v4/examples/calendar-demo.tsx
"use client" import * as React from "react" import { Calendar } from "@/registry/new-york-v4/ui/calendar" export default function CalendarDemo() { const [date, setDate] = React.useState<Date | undefined>(new Date()) return ( <Calendar mode="single" selected={date} onSelect={setDate} ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/button-group-select.tsx
apps/v4/registry/new-york-v4/examples/button-group-select.tsx
"use client" import * as React from "react" import { ArrowRightIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { ButtonGroup } from "@/registry/new-york-v4/ui/button-group" import { Input } from "@/registry/new-york-v4/ui/input" import { Select, SelectContent, SelectI...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/alert-demo.tsx
apps/v4/registry/new-york-v4/examples/alert-demo.tsx
import { AlertCircleIcon, CheckCircle2Icon, PopcornIcon } from "lucide-react" import { Alert, AlertDescription, AlertTitle, } from "@/registry/new-york-v4/ui/alert" export default function AlertDemo() { return ( <div className="grid w-full max-w-xl items-start gap-4"> <Alert> <CheckCircle2Ic...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/kbd-button.tsx
apps/v4/registry/new-york-v4/examples/kbd-button.tsx
import { Button } from "@/registry/new-york-v4/ui/button" import { Kbd } from "@/registry/new-york-v4/ui/kbd" export default function KbdButton() { return ( <div className="flex flex-wrap items-center gap-4"> <Button variant="outline" size="sm" className="pr-2"> Accept <Kbd>⏎</Kbd> </Button> ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/carousel-orientation.tsx
apps/v4/registry/new-york-v4/examples/carousel-orientation.tsx
import * as React from "react" import { Card, CardContent } from "@/registry/new-york-v4/ui/card" import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, } from "@/registry/new-york-v4/ui/carousel" export default function CarouselOrientation() { return ( <Carousel opts=...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/button-with-icon.tsx
apps/v4/registry/new-york-v4/examples/button-with-icon.tsx
import { IconGitBranch } from "@tabler/icons-react" import { Button } from "@/registry/new-york-v4/ui/button" export default function ButtonWithIcon() { return ( <Button variant="outline" size="sm"> <IconGitBranch /> New Branch </Button> ) }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/item-header.tsx
apps/v4/registry/new-york-v4/examples/item-header.tsx
import Image from "next/image" import { Item, ItemContent, ItemDescription, ItemGroup, ItemHeader, ItemTitle, } from "@/registry/new-york-v4/ui/item" const models = [ { name: "v0-1.5-sm", description: "Everyday tasks and UI generation.", image: "https://images.unsplash.com/photo-165080...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/select-demo.tsx
apps/v4/registry/new-york-v4/examples/select-demo.tsx
import * as React from "react" import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue, } from "@/registry/new-york-v4/ui/select" export default function SelectDemo() { return ( <Select> <SelectTrigger className="w-[180px]"> <SelectValue place...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-tanstack-array.tsx
apps/v4/registry/new-york-v4/examples/form-tanstack-array.tsx
/* eslint-disable react/no-children-prop */ "use client" import * as React from "react" import { useForm } from "@tanstack/react-form" import { XIcon } from "lucide-react" import { toast } from "sonner" import { z } from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/input-otp-demo.tsx
apps/v4/registry/new-york-v4/examples/input-otp-demo.tsx
import { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, } from "@/registry/new-york-v4/ui/input-otp" export default function InputOTPDemo() { return ( <InputOTP maxLength={6}> <InputOTPGroup> <InputOTPSlot index={0} /> <InputOTPSlot index={1} /> <InputOTPSlot inde...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/item-avatar.tsx
apps/v4/registry/new-york-v4/examples/item-avatar.tsx
import { Plus } from "lucide-react" import { Avatar, AvatarFallback, AvatarImage, } from "@/registry/new-york-v4/ui/avatar" import { Button } from "@/registry/new-york-v4/ui/button" import { Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, } from "@/registry/new-york-v4/ui/item"...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/checkbox-disabled.tsx
apps/v4/registry/new-york-v4/examples/checkbox-disabled.tsx
import { Checkbox } from "@/registry/new-york-v4/ui/checkbox" export default function CheckboxDisabled() { return ( <div className="flex items-center space-x-2"> <Checkbox id="terms2" disabled /> <label htmlFor="terms2" className="text-sm leading-none font-medium peer-disabled:cursor-...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/sheet-demo.tsx
apps/v4/registry/new-york-v4/examples/sheet-demo.tsx
import { Button } from "@/registry/new-york-v4/ui/button" import { Input } from "@/registry/new-york-v4/ui/input" import { Label } from "@/registry/new-york-v4/ui/label" import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, } from "@/registry/new...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/field-textarea.tsx
apps/v4/registry/new-york-v4/examples/field-textarea.tsx
import { Field, FieldDescription, FieldGroup, FieldLabel, FieldSet, } from "@/registry/new-york-v4/ui/field" import { Textarea } from "@/registry/new-york-v4/ui/textarea" export default function FieldTextarea() { return ( <div className="w-full max-w-md"> <FieldSet> <FieldGroup> ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/card-demo.tsx
apps/v4/registry/new-york-v4/examples/card-demo.tsx
import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Input } from "@/registry/new-york-v4/ui/input" import { Label } from "@/registry/new-york-v4/ui/label" exp...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/date-picker-with-range.tsx
apps/v4/registry/new-york-v4/examples/date-picker-with-range.tsx
"use client" import * as React from "react" import { addDays, format } from "date-fns" import { CalendarIcon } from "lucide-react" import { type DateRange } from "react-day-picker" import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" import { Calendar } from "@/registry/new-york-...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/dropdown-menu-dialog.tsx
apps/v4/registry/new-york-v4/examples/dropdown-menu-dialog.tsx
"use client" import { useState } from "react" import { MoreHorizontalIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, } from "@/registry/new-york-v4/ui/dialog" imp...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/item-link.tsx
apps/v4/registry/new-york-v4/examples/item-link.tsx
import { ChevronRightIcon, ExternalLinkIcon } from "lucide-react" import { Item, ItemActions, ItemContent, ItemDescription, ItemTitle, } from "@/registry/new-york-v4/ui/item" export default function ItemLink() { return ( <div className="flex w-full max-w-md flex-col gap-4"> <Item asChild> ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/collapsible-demo.tsx
apps/v4/registry/new-york-v4/examples/collapsible-demo.tsx
"use client" import * as React from "react" import { ChevronsUpDown } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/registry/new-york-v4/ui/collapsible" export default function CollapsibleDemo() { const [i...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/resizable-demo.tsx
apps/v4/registry/new-york-v4/examples/resizable-demo.tsx
import { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from "@/registry/new-york-v4/ui/resizable" export default function ResizableDemo() { return ( <ResizablePanelGroup direction="horizontal" className="max-w-md rounded-lg border md:min-w-[450px]" > <ResizablePanel defaultS...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/separator-demo.tsx
apps/v4/registry/new-york-v4/examples/separator-demo.tsx
import { Separator } from "@/registry/new-york-v4/ui/separator" export default function SeparatorDemo() { return ( <div> <div className="space-y-1"> <h4 className="text-sm leading-none font-medium">Radix Primitives</h4> <p className="text-muted-foreground text-sm"> An open-source ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/typography-h4.tsx
apps/v4/registry/new-york-v4/examples/typography-h4.tsx
export default function TypographyH4() { return ( <h4 className="scroll-m-20 text-xl font-semibold tracking-tight"> People stopped telling jokes </h4> ) }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/chart-tooltip-demo.tsx
apps/v4/registry/new-york-v4/examples/chart-tooltip-demo.tsx
"use client" import * as React from "react" import { cn } from "@/lib/utils" export default function Component() { return ( <div className="text-foreground grid aspect-video w-full max-w-md justify-center md:grid-cols-2 [&>div]:relative [&>div]:flex [&>div]:h-[137px] [&>div]:w-[224px] [&>div]:items-center [&>d...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/slider-demo.tsx
apps/v4/registry/new-york-v4/examples/slider-demo.tsx
import { cn } from "@/lib/utils" import { Slider } from "@/registry/new-york-v4/ui/slider" type SliderProps = React.ComponentProps<typeof Slider> export default function SliderDemo({ className, ...props }: SliderProps) { return ( <Slider defaultValue={[50]} max={100} step={1} className={...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/toggle-lg.tsx
apps/v4/registry/new-york-v4/examples/toggle-lg.tsx
import { Italic } from "lucide-react" import { Toggle } from "@/registry/new-york-v4/ui/toggle" export default function ToggleLg() { return ( <Toggle size="lg" aria-label="Toggle italic"> <Italic /> </Toggle> ) }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/button-group-nested.tsx
apps/v4/registry/new-york-v4/examples/button-group-nested.tsx
"use client" import { ArrowLeftIcon, ArrowRightIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { ButtonGroup } from "@/registry/new-york-v4/ui/button-group" export default function ButtonGroupNested() { return ( <ButtonGroup> <ButtonGroup> <Button varia...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-tanstack-demo.tsx
apps/v4/registry/new-york-v4/examples/form-tanstack-demo.tsx
/* eslint-disable react/no-children-prop */ "use client" import * as React from "react" import { useForm } from "@tanstack/react-form" import { toast } from "sonner" import * as z from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, Ca...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-rhf-radiogroup.tsx
apps/v4/registry/new-york-v4/examples/form-rhf-radiogroup.tsx
"use client" import * as React from "react" import { zodResolver } from "@hookform/resolvers/zod" import { Controller, useForm } from "react-hook-form" import { toast } from "sonner" import * as z from "zod" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/toggle-group-disabled.tsx
apps/v4/registry/new-york-v4/examples/toggle-group-disabled.tsx
import { Bold, Italic, Underline } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/registry/new-york-v4/ui/toggle-group" export default function ToggleGroupDemo() { return ( <ToggleGroup type="multiple" disabled> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bol...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/alert-dialog-demo.tsx
apps/v4/registry/new-york-v4/examples/alert-dialog-demo.tsx
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "@/registry/new-york-v4/ui/alert-dialog" import { Button } from "@/registry/new-york-v4/ui/button" export default ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/form-next-demo.tsx
apps/v4/registry/new-york-v4/examples/form-next-demo.tsx
"use client" import * as React from "react" import Form from "next/form" import { toast } from "sonner" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Field, Fiel...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/skeleton-card.tsx
apps/v4/registry/new-york-v4/examples/skeleton-card.tsx
import { Skeleton } from "@/registry/new-york-v4/ui/skeleton" export default function SkeletonCard() { return ( <div className="flex flex-col space-y-3"> <Skeleton className="h-[125px] w-[250px] rounded-xl" /> <div className="space-y-2"> <Skeleton className="h-4 w-[250px]" /> <Skeleto...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/button-secondary.tsx
apps/v4/registry/new-york-v4/examples/button-secondary.tsx
import { Button } from "@/registry/new-york-v4/ui/button" export default function ButtonSecondary() { return <Button variant="secondary">Secondary</Button> }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/carousel-plugin.tsx
apps/v4/registry/new-york-v4/examples/carousel-plugin.tsx
"use client" import * as React from "react" import Autoplay from "embla-carousel-autoplay" import { Card, CardContent } from "@/registry/new-york-v4/ui/card" import { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, } from "@/registry/new-york-v4/ui/carousel" export default function...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/empty-background.tsx
apps/v4/registry/new-york-v4/examples/empty-background.tsx
import { IconBell } from "@tabler/icons-react" import { RefreshCcwIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "@/registry/new-york-v4/ui/empty" export default function Empty...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/combobox-demo.tsx
apps/v4/registry/new-york-v4/examples/combobox-demo.tsx
"use client" import * as React from "react" import { Check, ChevronsUpDown } from "lucide-react" import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, } from "@/registry/new-york-v4/u...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/dialog-demo.tsx
apps/v4/registry/new-york-v4/examples/dialog-demo.tsx
import { Button } from "@/registry/new-york-v4/ui/button" import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "@/registry/new-york-v4/ui/dialog" import { Input } from "@/registry/new-york-v4/ui/input" import { Label } from "@/reg...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/field-switch.tsx
apps/v4/registry/new-york-v4/examples/field-switch.tsx
import { Field, FieldContent, FieldDescription, FieldLabel, } from "@/registry/new-york-v4/ui/field" import { Switch } from "@/registry/new-york-v4/ui/switch" export default function FieldSwitch() { return ( <div className="w-full max-w-md"> <Field orientation="horizontal"> <FieldContent> ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/date-picker-demo.tsx
apps/v4/registry/new-york-v4/examples/date-picker-demo.tsx
"use client" import * as React from "react" import { format } from "date-fns" import { CalendarIcon } from "lucide-react" import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" import { Calendar } from "@/registry/new-york-v4/ui/calendar" import { Popover, PopoverContent, Pop...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/field-checkbox.tsx
apps/v4/registry/new-york-v4/examples/field-checkbox.tsx
import { Checkbox } from "@/registry/new-york-v4/ui/checkbox" import { Field, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, } from "@/registry/new-york-v4/ui/field" export default function FieldCheckbox() { return ( <div className="w-full max-w-md"...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/toggle-group-spacing.tsx
apps/v4/registry/new-york-v4/examples/toggle-group-spacing.tsx
import { BookmarkIcon, HeartIcon, StarIcon } from "lucide-react" import { ToggleGroup, ToggleGroupItem, } from "@/registry/new-york-v4/ui/toggle-group" export default function ToggleGroupSpacing() { return ( <ToggleGroup type="multiple" variant="outline" spacing={2} size="sm"> <ToggleGroupItem ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/registry/new-york-v4/examples/spinner-item.tsx
apps/v4/registry/new-york-v4/examples/spinner-item.tsx
import { Button } from "@/registry/new-york-v4/ui/button" import { Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemMedia, ItemTitle, } from "@/registry/new-york-v4/ui/item" import { Progress } from "@/registry/new-york-v4/ui/progress" import { Spinner } from "@/registry/new-york-v4/ui/spi...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false