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/blocks/sidebar-01/components/search-form.tsx
apps/v4/registry/new-york-v4/blocks/sidebar-01/components/search-form.tsx
import { Search } from "lucide-react" import { Label } from "@/registry/new-york-v4/ui/label" import { SidebarGroup, SidebarGroupContent, SidebarInput, } from "@/registry/new-york-v4/ui/sidebar" export function SearchForm({ ...props }: React.ComponentProps<"form">) { return ( <form {...props}> <Side...
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/blocks/sidebar-01/components/version-switcher.tsx
apps/v4/registry/new-york-v4/blocks/sidebar-01/components/version-switcher.tsx
"use client" import * as React from "react" import { Check, ChevronsUpDown, GalleryVerticalEnd } from "lucide-react" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/registry/new-york-v4/ui/dropdown-menu" import { SidebarMenu, SidebarMenuButton, SidebarMenuIte...
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/internal/sidebar-group-collapsible.tsx
apps/v4/registry/new-york-v4/internal/sidebar-group-collapsible.tsx
"use client" import { ChevronDownIcon, LifeBuoyIcon, SendIcon } from "lucide-react" import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/registry/new-york-v4/ui/collapsible" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, Side...
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/internal/sidebar-group.tsx
apps/v4/registry/new-york-v4/internal/sidebar-group.tsx
"use client" import { LifeBuoyIcon, SendIcon } from "lucide-react" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvider, } from "@/registry/new-york-v4/ui/sidebar" export default function AppSidebar(...
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/internal/sidebar-rsc.tsx
apps/v4/registry/new-york-v4/internal/sidebar-rsc.tsx
import * as React from "react" import { FrameIcon, LifeBuoyIcon, MapIcon, PieChartIcon, SendIcon, } from "lucide-react" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarProv...
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/internal/sidebar-menu-sub.tsx
apps/v4/registry/new-york-v4/internal/sidebar-menu-sub.tsx
"use client" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, } from "@/registry/new-york-v4/ui/sidebar" const items = [ { title: "Getting Started...
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/internal/sidebar-menu.tsx
apps/v4/registry/new-york-v4/internal/sidebar-menu.tsx
"use client" import { FrameIcon, LifeBuoyIcon, MapIcon, PieChartIcon, SendIcon, } from "lucide-react" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvider, } 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/internal/sidebar-header.tsx
apps/v4/registry/new-york-v4/internal/sidebar-header.tsx
"use client" import { ChevronDownIcon } from "lucide-react" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/registry/new-york-v4/ui/dropdown-menu" import { Sidebar, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarP...
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/internal/sidebar-demo.tsx
apps/v4/registry/new-york-v4/internal/sidebar-demo.tsx
"use client" import { CalendarIcon, HomeIcon, InboxIcon, SearchIcon, SettingsIcon, } from "lucide-react" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarInset, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvider, SidebarTrigge...
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/internal/sidebar-footer.tsx
apps/v4/registry/new-york-v4/internal/sidebar-footer.tsx
"use client" import { ChevronUpIcon } from "lucide-react" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/registry/new-york-v4/ui/dropdown-menu" import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuButt...
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/internal/sidebar-controlled.tsx
apps/v4/registry/new-york-v4/internal/sidebar-controlled.tsx
"use client" import * as React from "react" import { FrameIcon, LifeBuoyIcon, MapIcon, PanelLeftCloseIcon, PanelLeftOpenIcon, PieChartIcon, SendIcon, } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupConten...
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/internal/_registry.ts
apps/v4/registry/new-york-v4/internal/_registry.ts
import { type Registry } from "shadcn/schema" export const internal: Registry["items"] = [ // Do not move this. They are intentionally here for registry capture. { name: "sidebar-demo", type: "registry:internal", files: [ { path: "internal/sidebar-demo.tsx", type: "registry:compon...
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/internal/sidebar-menu-collapsible.tsx
apps/v4/registry/new-york-v4/internal/sidebar-menu-collapsible.tsx
"use client" import { ChevronRightIcon } from "lucide-react" import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/registry/new-york-v4/ui/collapsible" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarM...
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/internal/sidebar-menu-action.tsx
apps/v4/registry/new-york-v4/internal/sidebar-menu-action.tsx
"use client" import { FrameIcon, LifeBuoyIcon, MapIcon, MoreHorizontalIcon, PieChartIcon, SendIcon, } from "lucide-react" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/registry/new-york-v4/ui/dropdown-menu" import { Sidebar, SidebarContent, Side...
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/internal/sidebar-group-action.tsx
apps/v4/registry/new-york-v4/internal/sidebar-group-action.tsx
"use client" import { FrameIcon, MapIcon, PieChartIcon, PlusIcon } from "lucide-react" import { toast, Toaster } from "sonner" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarProvide...
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/internal/sidebar-menu-badge.tsx
apps/v4/registry/new-york-v4/internal/sidebar-menu-badge.tsx
"use client" import { FrameIcon, LifeBuoyIcon, MapIcon, PieChartIcon, SendIcon, } from "lucide-react" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarProvider, } from "@/regi...
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-legend.tsx
apps/v4/registry/new-york-v4/examples/chart-bar-demo-legend.tsx
"use client" import { Bar, BarChart, CartesianGrid, XAxis } from "recharts" import { ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent, type ChartConfig, } from "@/registry/new-york-v4/ui/chart" const chartData = [ { month: "January", desktop: 186, mobile: 80 }, { mon...
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-avatar-group.tsx
apps/v4/registry/new-york-v4/examples/empty-avatar-group.tsx
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 { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "@/registry/new-york-v4...
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-action.ts
apps/v4/registry/new-york-v4/examples/form-next-demo-action.ts
"use server" import { formSchema, type FormState } from "./form-next-demo-schema" export async function demoFormAction( _prevState: FormState, formData: FormData ) { const values = { title: formData.get("title") as string, description: formData.get("description") as string, } const result = formSch...
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-dropdown.tsx
apps/v4/registry/new-york-v4/examples/breadcrumb-dropdown.tsx
import Link from "next/link" import { ChevronDownIcon, SlashIcon } from "lucide-react" import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/registry/new-york-v4/ui/breadcrumb" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, ...
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-with-text.tsx
apps/v4/registry/new-york-v4/examples/checkbox-with-text.tsx
"use client" import { Checkbox } from "@/registry/new-york-v4/ui/checkbox" export default function CheckboxWithText() { return ( <div className="items-top flex gap-2"> <Checkbox id="terms1" /> <div className="grid gap-1.5 leading-none"> <label htmlFor="terms1" 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/typography-h1.tsx
apps/v4/registry/new-york-v4/examples/typography-h1.tsx
export default function TypographyH1() { return ( <h1 className="scroll-m-20 text-center text-4xl font-extrabold tracking-tight text-balance"> Taxing Laughter: The Joke Tax Chronicles </h1> ) }
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-spinner.tsx
apps/v4/registry/new-york-v4/examples/input-group-spinner.tsx
import { LoaderIcon } from "lucide-react" import { InputGroup, InputGroupAddon, InputGroupInput, InputGroupText, } from "@/registry/new-york-v4/ui/input-group" import { Spinner } from "@/registry/new-york-v4/ui/spinner" export default function InputGroupSpinner() { return ( <div className="grid w-full m...
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-h2.tsx
apps/v4/registry/new-york-v4/examples/typography-h2.tsx
export default function TypographyH2() { return ( <h2 className="scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0"> The People of the Kingdom </h2> ) }
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-complex.tsx
apps/v4/registry/new-york-v4/examples/form-tanstack-complex.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, CardFooter } from "@/registry/new-york-v4...
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-demo.tsx
apps/v4/registry/new-york-v4/examples/empty-demo.tsx
import { IconFolderCode } from "@tabler/icons-react" import { ArrowUpRightIcon } 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 functi...
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-demo.tsx
apps/v4/registry/new-york-v4/examples/input-demo.tsx
import { Input } from "@/registry/new-york-v4/ui/input" export default function InputDemo() { return <Input type="email" placeholder="Email" /> }
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/native-select-invalid.tsx
apps/v4/registry/new-york-v4/examples/native-select-invalid.tsx
import { NativeSelect, NativeSelectOption, } from "@/registry/new-york-v4/ui/native-select" export default function NativeSelectInvalid() { return ( <NativeSelect aria-invalid="true"> <NativeSelectOption value="">Select role</NativeSelectOption> <NativeSelectOption value="admin">Admin</NativeSele...
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-demo.tsx
apps/v4/registry/new-york-v4/examples/sonner-demo.tsx
"use client" import { toast } from "sonner" import { Button } from "@/registry/new-york-v4/ui/button" export default function SonnerDemo() { return ( <Button variant="outline" onClick={() => toast("Event has been created", { description: "Sunday, December 03, 2023 at 9:00 AM", ...
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-checkboxes.tsx
apps/v4/registry/new-york-v4/examples/dropdown-menu-checkboxes.tsx
"use client" import * as React from "react" import { type DropdownMenuCheckboxItemProps } from "@radix-ui/react-dropdown-menu" import { Button } from "@/registry/new-york-v4/ui/button" import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownM...
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-label.tsx
apps/v4/registry/new-york-v4/examples/input-group-label.tsx
import { InfoIcon } from "lucide-react" import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from "@/registry/new-york-v4/ui/input-group" import { Label } from "@/registry/new-york-v4/ui/label" import { Tooltip, TooltipContent, TooltipTrigger, } from "@/registry/new-york-v4/ui/toolt...
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-destructive.tsx
apps/v4/registry/new-york-v4/examples/button-destructive.tsx
import { Button } from "@/registry/new-york-v4/ui/button" export default function ButtonDestructive() { return <Button variant="destructive">Destructive</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-size.tsx
apps/v4/registry/new-york-v4/examples/carousel-size.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 CarouselSize() { 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/form-rhf-input.tsx
apps/v4/registry/new-york-v4/examples/form-rhf-input.tsx
"use client" 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, CardFooter, CardHeader, 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/combobox-popover.tsx
apps/v4/registry/new-york-v4/examples/combobox-popover.tsx
"use client" import * as React from "react" import { Button } from "@/registry/new-york-v4/ui/button" import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, } from "@/registry/new-york-v4/ui/command" import { Popover, PopoverContent, PopoverTrigger, } from "@/registry/...
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-disabled.tsx
apps/v4/registry/new-york-v4/examples/input-disabled.tsx
import { Input } from "@/registry/new-york-v4/ui/input" export default function InputDisabled() { return <Input disabled type="email" placeholder="Email" /> }
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/data-table-demo.tsx
apps/v4/registry/new-york-v4/examples/data-table-demo.tsx
"use client" import * as React from "react" import { flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable, type ColumnDef, type ColumnFiltersState, type SortingState, type VisibilityState, } from "@tanstack/react-table" import { ArrowUpDown, Chev...
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-outline.tsx
apps/v4/registry/new-york-v4/examples/toggle-group-outline.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" variant="outline"> <ToggleGroupItem value="bold" aria-label="Toggle 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/badge-destructive.tsx
apps/v4/registry/new-york-v4/examples/badge-destructive.tsx
import { Badge } from "@/registry/new-york-v4/ui/badge" export default function BadgeDestructive() { return <Badge variant="destructive">Destructive</Badge> }
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-responsive.tsx
apps/v4/registry/new-york-v4/examples/breadcrumb-responsive.tsx
"use client" import * as React from "react" import Link from "next/link" import { useMediaQuery } from "@/hooks/use-media-query" import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/registry/new-york-v4/ui/breadcrumb" 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/form-rhf-checkbox.tsx
apps/v4/registry/new-york-v4/examples/form-rhf-checkbox.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/button-rounded.tsx
apps/v4/registry/new-york-v4/examples/button-rounded.tsx
import { ArrowUpIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" export default function ButtonRounded() { return ( <div className="flex flex-col gap-8"> <Button variant="outline" size="icon" className="rounded-full"> <ArrowUpIcon /> </Button> </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-empty.tsx
apps/v4/registry/new-york-v4/examples/spinner-empty.tsx
import { Button } from "@/registry/new-york-v4/ui/button" import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "@/registry/new-york-v4/ui/empty" import { Spinner } from "@/registry/new-york-v4/ui/spinner" export default function SpinnerEmpty() { return ( <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/progress-demo.tsx
apps/v4/registry/new-york-v4/examples/progress-demo.tsx
"use client" import * as React from "react" import { Progress } from "@/registry/new-york-v4/ui/progress" export default function ProgressDemo() { const [progress, setProgress] = React.useState(13) React.useEffect(() => { const timer = setTimeout(() => setProgress(66), 500) return () => clearTimeout(tim...
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-input-group.tsx
apps/v4/registry/new-york-v4/examples/kbd-input-group.tsx
import { SearchIcon } from "lucide-react" import { InputGroup, InputGroupAddon, InputGroupInput, } from "@/registry/new-york-v4/ui/input-group" import { Kbd } from "@/registry/new-york-v4/ui/kbd" export default function KbdInputGroup() { return ( <div className="flex w-full max-w-xs flex-col gap-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/mode-toggle.tsx
apps/v4/registry/new-york-v4/examples/mode-toggle.tsx
"use client" import * as React from "react" import { Moon, Sun } from "lucide-react" import { useTheme } from "next-themes" import { Button } from "@/registry/new-york-v4/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/registry/new-york-v4/ui/dropdown-me...
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-input.tsx
apps/v4/registry/new-york-v4/examples/field-input.tsx
import { Field, FieldDescription, FieldGroup, FieldLabel, FieldSet, } from "@/registry/new-york-v4/ui/field" import { Input } from "@/registry/new-york-v4/ui/input" export default function FieldInput() { return ( <div className="w-full max-w-md"> <FieldSet> <FieldGroup> <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-file.tsx
apps/v4/registry/new-york-v4/examples/input-file.tsx
import { Input } from "@/registry/new-york-v4/ui/input" import { Label } from "@/registry/new-york-v4/ui/label" export default function InputFile() { return ( <div className="grid w-full max-w-sm items-center gap-3"> <Label htmlFor="picture">Picture</Label> <Input id="picture" type="file" /> </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/button-group-popover.tsx
apps/v4/registry/new-york-v4/examples/button-group-popover.tsx
import { BotIcon, ChevronDownIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { ButtonGroup } from "@/registry/new-york-v4/ui/button-group" import { Popover, PopoverContent, PopoverTrigger, } from "@/registry/new-york-v4/ui/popover" import { Separator } from "@/registry...
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-single.tsx
apps/v4/registry/new-york-v4/examples/toggle-group-single.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"> <ToggleGroupItem value="bold" aria-label="Toggle bold"> <Bold 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/button-outline.tsx
apps/v4/registry/new-york-v4/examples/button-outline.tsx
import { Button } from "@/registry/new-york-v4/ui/button" export default function ButtonOutline() { return <Button variant="outline">Outline</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/typography-h3.tsx
apps/v4/registry/new-york-v4/examples/typography-h3.tsx
export default function TypographyH3() { return ( <h3 className="scroll-m-20 text-2xl font-semibold tracking-tight"> The Joke Tax </h3> ) }
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-demo.tsx
apps/v4/registry/new-york-v4/examples/skeleton-demo.tsx
import { Skeleton } from "@/registry/new-york-v4/ui/skeleton" export default function SkeletonDemo() { return ( <div className="flex items-center space-x-4"> <Skeleton className="h-12 w-12 rounded-full" /> <div className="space-y-2"> <Skeleton className="h-4 w-[250px]" /> <Skeleton cl...
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-as-child.tsx
apps/v4/registry/new-york-v4/examples/button-as-child.tsx
import Link from "next/link" import { Button } from "@/registry/new-york-v4/ui/button" export default function ButtonAsChild() { return ( <Button asChild> <Link href="/login">Login</Link> </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/input-group-tooltip.tsx
apps/v4/registry/new-york-v4/examples/input-group-tooltip.tsx
import { HelpCircle, InfoIcon } from "lucide-react" import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from "@/registry/new-york-v4/ui/input-group" import { Tooltip, TooltipContent, TooltipTrigger, } from "@/registry/new-york-v4/ui/tooltip" export default function InputGroupToolt...
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/badge-secondary.tsx
apps/v4/registry/new-york-v4/examples/badge-secondary.tsx
import { Badge } from "@/registry/new-york-v4/ui/badge" export default function BadgeSecondary() { return <Badge variant="secondary">Secondary</Badge> }
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-label.tsx
apps/v4/registry/new-york-v4/examples/textarea-with-label.tsx
import { Label } from "@/registry/new-york-v4/ui/label" import { Textarea } from "@/registry/new-york-v4/ui/textarea" export default function TextareaWithLabel() { return ( <div className="grid w-full gap-3"> <Label htmlFor="message">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/item-size.tsx
apps/v4/registry/new-york-v4/examples/item-size.tsx
import { BadgeCheckIcon, ChevronRightIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, } from "@/registry/new-york-v4/ui/item" export default function ItemSizeDemo() { return ( <div cla...
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-demo.tsx
apps/v4/registry/new-york-v4/examples/kbd-demo.tsx
import { Kbd, KbdGroup } from "@/registry/new-york-v4/ui/kbd" export default function KbdDemo() { return ( <div className="flex flex-col items-center gap-4"> <KbdGroup> <Kbd>⌘</Kbd> <Kbd>⇧</Kbd> <Kbd>⌥</Kbd> <Kbd>⌃</Kbd> </KbdGroup> <KbdGroup> <Kbd>Ctrl</...
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-image.tsx
apps/v4/registry/new-york-v4/examples/item-image.tsx
import Image from "next/image" import { Item, ItemContent, ItemDescription, ItemGroup, ItemMedia, ItemTitle, } from "@/registry/new-york-v4/ui/item" const music = [ { title: "Midnight City Lights", artist: "Neon Dreams", album: "Electric Nights", duration: "3:45", }, { title: "Co...
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-inline-code.tsx
apps/v4/registry/new-york-v4/examples/typography-inline-code.tsx
export default function TypographyInlineCode() { return ( <code className="bg-muted relative rounded px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold"> @radix-ui/react-alert-dialog </code> ) }
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.tsx
apps/v4/registry/new-york-v4/examples/form-next-complex.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, CardFooter } from "@/registry/new-york-v4/ui/card" import { Checkbox } from "@/registry/new-york-v4/ui/checkbox" import { 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/field-choice-card.tsx
apps/v4/registry/new-york-v4/examples/field-choice-card.tsx
import { Field, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldSet, FieldTitle, } from "@/registry/new-york-v4/ui/field" import { RadioGroup, RadioGroupItem, } from "@/registry/new-york-v4/ui/radio-group" export default function FieldChoiceCard() { return ( <div className="w-full ...
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/pagination-demo.tsx
apps/v4/registry/new-york-v4/examples/pagination-demo.tsx
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, } from "@/registry/new-york-v4/ui/pagination" export default function PaginationDemo() { return ( <Pagination> <PaginationContent> <PaginationItem> ...
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-action.ts
apps/v4/registry/new-york-v4/examples/form-next-complex-action.ts
"use server" import { formSchema, type FormState } from "./form-next-complex-schema" export async function complexFormAction( _prevState: FormState, formData: FormData ) { // Sleep for 1 second await new Promise((resolve) => setTimeout(resolve, 1000)) const values = { plan: formData.get("plan") as Form...
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-with-text.tsx
apps/v4/registry/new-york-v4/examples/toggle-with-text.tsx
import { Italic } from "lucide-react" import { Toggle } from "@/registry/new-york-v4/ui/toggle" export default function ToggleWithText() { return ( <Toggle aria-label="Toggle italic"> <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/breadcrumb-link.tsx
apps/v4/registry/new-york-v4/examples/breadcrumb-link.tsx
import Link from "next/link" import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/registry/new-york-v4/ui/breadcrumb" export default function BreadcrumbWithCustomSeparator() { return ( <Breadcrumb> <BreadcrumbList> <Breadcr...
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-input-group.tsx
apps/v4/registry/new-york-v4/examples/empty-input-group.tsx
import { SearchIcon } from "lucide-react" import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle, } from "@/registry/new-york-v4/ui/empty" import { InputGroup, InputGroupAddon, InputGroupInput, } from "@/registry/new-york-v4/ui/input-group" import { Kbd } 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/form-rhf-demo.tsx
apps/v4/registry/new-york-v4/examples/form-rhf-demo.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/item-icon.tsx
apps/v4/registry/new-york-v4/examples/item-icon.tsx
import { ShieldAlertIcon } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Item, ItemActions, ItemContent, ItemDescription, ItemMedia, ItemTitle, } from "@/registry/new-york-v4/ui/item" export default function ItemIcon() { return ( <div className="flex w-full m...
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-orientation.tsx
apps/v4/registry/new-york-v4/examples/button-group-orientation.tsx
import { MinusIcon, PlusIcon } 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 ButtonGroupOrientation() { return ( <ButtonGroup orientation="vertical" aria-label="Media controls...
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-pattern.tsx
apps/v4/registry/new-york-v4/examples/input-otp-pattern.tsx
"use client" import { REGEXP_ONLY_DIGITS_AND_CHARS } from "input-otp" import { InputOTP, InputOTPGroup, InputOTPSlot, } from "@/registry/new-york-v4/ui/input-otp" export default function InputOTPPattern() { return ( <InputOTP maxLength={6} pattern={REGEXP_ONLY_DIGITS_AND_CHARS}> <InputOTPGroup> ...
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/popover-demo.tsx
apps/v4/registry/new-york-v4/examples/popover-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 { Popover, PopoverContent, PopoverTrigger, } from "@/registry/new-york-v4/ui/popover" export default function PopoverDemo() { return (...
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-demo.tsx
apps/v4/registry/new-york-v4/examples/toggle-group-demo.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 variant="outline" type="multiple"> <ToggleGroupItem value="bold" aria-label="Toggle 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/native-select-disabled.tsx
apps/v4/registry/new-york-v4/examples/native-select-disabled.tsx
import { NativeSelect, NativeSelectOption, } from "@/registry/new-york-v4/ui/native-select" export default function NativeSelectDisabled() { return ( <NativeSelect disabled> <NativeSelectOption value="">Select priority</NativeSelectOption> <NativeSelectOption value="low">Low</NativeSelectOption> ...
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-disabled.tsx
apps/v4/registry/new-york-v4/examples/toggle-disabled.tsx
import { Underline } from "lucide-react" import { Toggle } from "@/registry/new-york-v4/ui/toggle" export default function ToggleDisabled() { return ( <Toggle aria-label="Toggle italic" disabled> <Underline className="h-4 w-4" /> </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/empty-avatar.tsx
apps/v4/registry/new-york-v4/examples/empty-avatar.tsx
import { Avatar, AvatarFallback, AvatarImage, } from "@/registry/new-york-v4/ui/avatar" 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/drawer-dialog.tsx
apps/v4/registry/new-york-v4/examples/drawer-dialog.tsx
"use client" import * as React from "react" import { cn } from "@/lib/utils" import { useMediaQuery } from "@/hooks/use-media-query" import { Button } from "@/registry/new-york-v4/ui/button" import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } 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/typography-large.tsx
apps/v4/registry/new-york-v4/examples/typography-large.tsx
export default function TypographyLarge() { return <div className="text-lg font-semibold">Are you absolutely sure?</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/button-link.tsx
apps/v4/registry/new-york-v4/examples/button-link.tsx
import { Button } from "@/registry/new-york-v4/ui/button" export default function ButtonLink() { return <Button variant="link">Link</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-next-demo-schema.ts
apps/v4/registry/new-york-v4/examples/form-next-demo-schema.ts
import { z } from "zod" export const formSchema = z.object({ title: z .string() .min(5, "Bug title must be at least 5 characters.") .max(32, "Bug title must be at most 32 characters."), description: z .string() .min(20, "Description must be at least 20 characters.") .max(100, "Description m...
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/command-demo.tsx
apps/v4/registry/new-york-v4/examples/command-demo.tsx
import { Calculator, Calendar, CreditCard, Settings, Smile, User, } from "lucide-react" import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, } from "@/registry/new-york-v4/ui/command" export default function CommandDemo() ...
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/native-select-groups.tsx
apps/v4/registry/new-york-v4/examples/native-select-groups.tsx
import { NativeSelect, NativeSelectOptGroup, NativeSelectOption, } from "@/registry/new-york-v4/ui/native-select" export default function NativeSelectGroups() { return ( <NativeSelect> <NativeSelectOption value="">Select department</NativeSelectOption> <NativeSelectOptGroup label="Engineering">...
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/accordion-demo.tsx
apps/v4/registry/new-york-v4/examples/accordion-demo.tsx
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "@/registry/new-york-v4/ui/accordion" export default function AccordionDemo() { return ( <Accordion type="single" collapsible className="w-full" defaultValue="item-1" > <AccordionItem value="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/sheet-side.tsx
apps/v4/registry/new-york-v4/examples/sheet-side.tsx
"use client" 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 "...
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-fieldset.tsx
apps/v4/registry/new-york-v4/examples/field-fieldset.tsx
import { Field, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSet, } from "@/registry/new-york-v4/ui/field" import { Input } from "@/registry/new-york-v4/ui/input" export default function FieldFieldset() { return ( <div className="w-full max-w-md space-y-6"> <FieldSet> <Fi...
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-dropdown.tsx
apps/v4/registry/new-york-v4/examples/item-dropdown.tsx
"use client" import { ChevronDownIcon } from "lucide-react" import { Avatar, AvatarFallback, AvatarImage, } from "@/registry/new-york-v4/ui/avatar" import { Button } from "@/registry/new-york-v4/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/regis...
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-hijri.tsx
apps/v4/registry/new-york-v4/examples/calendar-hijri.tsx
"use client" import * as React from "react" import { ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, } from "lucide-react" import { getDefaultClassNames, type DayButton } from "react-day-picker" import { DayPicker } from "react-day-picker/persian" import { cn } from "@/lib/utils" import { Button, buttonVari...
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/tooltip-demo.tsx
apps/v4/registry/new-york-v4/examples/tooltip-demo.tsx
import { Button } from "@/registry/new-york-v4/ui/button" import { Tooltip, TooltipContent, TooltipTrigger, } from "@/registry/new-york-v4/ui/tooltip" export default function TooltipDemo() { return ( <Tooltip> <TooltipTrigger asChild> <Button variant="outline">Hover</Button> </TooltipTr...
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-disabled.tsx
apps/v4/registry/new-york-v4/examples/textarea-disabled.tsx
import { Textarea } from "@/registry/new-york-v4/ui/textarea" export default function TextareaDisabled() { return <Textarea placeholder="Type your message here." disabled /> }
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-group.tsx
apps/v4/registry/new-york-v4/examples/field-group.tsx
import { Checkbox } from "@/registry/new-york-v4/ui/checkbox" import { Field, FieldDescription, FieldGroup, FieldLabel, FieldSeparator, FieldSet, } from "@/registry/new-york-v4/ui/field" export default function FieldGroupExample() { return ( <div className="w-full max-w-md"> <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/chart-bar-demo-axis.tsx
apps/v4/registry/new-york-v4/examples/chart-bar-demo-axis.tsx
"use client" import { Bar, BarChart, CartesianGrid, XAxis } 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: 23...
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-icon.tsx
apps/v4/registry/new-york-v4/examples/empty-icon.tsx
import { IconBookmark, IconHeart, IconInbox, IconStar, } from "@tabler/icons-react" import { Empty, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "@/registry/new-york-v4/ui/empty" export default function EmptyIcon() { return ( <div className="grid gap-8 md:grid-cols-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/combobox-dropdown-menu.tsx
apps/v4/registry/new-york-v4/examples/combobox-dropdown-menu.tsx
"use client" import * as React from "react" import { MoreHorizontal } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, } from "@/registry/new-york-v4/ui/command" import { DropdownMenu, Dr...
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-complex.tsx
apps/v4/registry/new-york-v4/examples/form-rhf-complex.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/breadcrumb-demo.tsx
apps/v4/registry/new-york-v4/examples/breadcrumb-demo.tsx
import Link from "next/link" import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "@/registry/new-york-v4/ui/breadcrumb" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } 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/typography-lead.tsx
apps/v4/registry/new-york-v4/examples/typography-lead.tsx
export default function TypographyLead() { return ( <p className="text-muted-foreground text-xl"> A modal dialog that interrupts the user with important content and expects a response. </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/button-group-demo.tsx
apps/v4/registry/new-york-v4/examples/button-group-demo.tsx
"use client" import * as React from "react" import { ArchiveIcon, ArrowLeftIcon, CalendarPlusIcon, ClockIcon, ListFilterIcon, MailCheckIcon, MoreHorizontalIcon, TagIcon, Trash2Icon, } from "lucide-react" import { Button } from "@/registry/new-york-v4/ui/button" import { ButtonGroup } from "@/registr...
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-select.tsx
apps/v4/registry/new-york-v4/examples/form-tanstack-select.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/dialog-close-button.tsx
apps/v4/registry/new-york-v4/examples/dialog-close-button.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