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/spinner-button.tsx | apps/v4/registry/new-york-v4/examples/spinner-button.tsx | import { Button } from "@/registry/new-york-v4/ui/button"
import { Spinner } from "@/registry/new-york-v4/ui/spinner"
export default function SpinnerButton() {
return (
<div className="flex flex-col items-center gap-4">
<Button disabled size="sm">
<Spinner />
Loading...
</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-demo.tsx | apps/v4/registry/new-york-v4/examples/item-demo.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 ItemDemo() {
return (
<div classNa... | 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-separator.tsx | apps/v4/registry/new-york-v4/examples/breadcrumb-separator.tsx | import Link from "next/link"
import { SlashIcon } from "lucide-react"
import {
Breadcrumb,
BreadcrumbItem,
BreadcrumbLink,
BreadcrumbList,
BreadcrumbPage,
BreadcrumbSeparator,
} from "@/registry/new-york-v4/ui/breadcrumb"
export default function BreadcrumbWithCustomSeparator() {
return (
<Breadcrumb... | 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-tooltip.tsx | apps/v4/registry/new-york-v4/examples/kbd-tooltip.tsx | import { Button } from "@/registry/new-york-v4/ui/button"
import { ButtonGroup } from "@/registry/new-york-v4/ui/button-group"
import { Kbd, KbdGroup } from "@/registry/new-york-v4/ui/kbd"
import {
Tooltip,
TooltipContent,
TooltipTrigger,
} from "@/registry/new-york-v4/ui/tooltip"
export default function KbdTool... | 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-vertical.tsx | apps/v4/registry/new-york-v4/examples/resizable-vertical.tsx | import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/registry/new-york-v4/ui/resizable"
export default function ResizableDemo() {
return (
<ResizablePanelGroup
direction="vertical"
className="min-h-[200px] max-w-md rounded-lg border md:min-w-[450px]"
>
<ResizablePa... | 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-list.tsx | apps/v4/registry/new-york-v4/examples/typography-list.tsx | export default function TypographyList() {
return (
<ul className="my-6 ml-6 list-disc [&>li]:mt-2">
<li>1st level of puns: 5 gold coins</li>
<li>2nd level of jokes: 10 gold coins</li>
<li>3rd level of one-liners : 20 gold coins</li>
</ul>
)
}
| 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/radio-group-demo.tsx | apps/v4/registry/new-york-v4/examples/radio-group-demo.tsx | import { Label } from "@/registry/new-york-v4/ui/label"
import {
RadioGroup,
RadioGroupItem,
} from "@/registry/new-york-v4/ui/radio-group"
export default function RadioGroupDemo() {
return (
<RadioGroup defaultValue="comfortable">
<div className="flex items-center gap-3">
<RadioGroupItem value... | 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-lg.tsx | apps/v4/registry/new-york-v4/examples/toggle-group-lg.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" size="lg">
<ToggleGroupItem value="bold" aria-label="Toggle bold">
<Bo... | 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-demo.tsx | apps/v4/registry/new-york-v4/examples/native-select-demo.tsx | import {
NativeSelect,
NativeSelectOption,
} from "@/registry/new-york-v4/ui/native-select"
export default function NativeSelectDemo() {
return (
<NativeSelect>
<NativeSelectOption value="">Select status</NativeSelectOption>
<NativeSelectOption value="todo">Todo</NativeSelectOption>
<Native... | 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-spacing.tsx | apps/v4/registry/new-york-v4/examples/carousel-spacing.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 CarouselSpacing() {
return (
<Carousel className="w-fu... | 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-textarea.tsx | apps/v4/registry/new-york-v4/examples/input-group-textarea.tsx | import {
IconBrandJavascript,
IconCopy,
IconCornerDownLeft,
IconRefresh,
} from "@tabler/icons-react"
import {
InputGroup,
InputGroupAddon,
InputGroupButton,
InputGroupText,
InputGroupTextarea,
} from "@/registry/new-york-v4/ui/input-group"
export default function InputGroupTextareaExample() {
ret... | 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-badge.tsx | apps/v4/registry/new-york-v4/examples/spinner-badge.tsx | import { Badge } from "@/registry/new-york-v4/ui/badge"
import { Spinner } from "@/registry/new-york-v4/ui/spinner"
export default function SpinnerBadge() {
return (
<div className="flex items-center gap-4 [--radius:1.2rem]">
<Badge>
<Spinner />
Syncing
</Badge>
<Badge variant="... | 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-ghost.tsx | apps/v4/registry/new-york-v4/examples/button-ghost.tsx | import { Button } from "@/registry/new-york-v4/ui/button"
export default function ButtonGhost() {
return <Button variant="ghost">Ghost</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/field-demo.tsx | apps/v4/registry/new-york-v4/examples/field-demo.tsx | import { Button } from "@/registry/new-york-v4/ui/button"
import { Checkbox } from "@/registry/new-york-v4/ui/checkbox"
import {
Field,
FieldDescription,
FieldGroup,
FieldLabel,
FieldLegend,
FieldSeparator,
FieldSet,
} from "@/registry/new-york-v4/ui/field"
import { Input } 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/badge-outline.tsx | apps/v4/registry/new-york-v4/examples/badge-outline.tsx | import { Badge } from "@/registry/new-york-v4/ui/badge"
export default function BadgeOutline() {
return <Badge variant="outline">Outline</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/kbd-group.tsx | apps/v4/registry/new-york-v4/examples/kbd-group.tsx | import { Kbd, KbdGroup } from "@/registry/new-york-v4/ui/kbd"
export default function KbdGroupExample() {
return (
<div className="flex flex-col items-center gap-4">
<p className="text-muted-foreground text-sm">
Use{" "}
<KbdGroup>
<Kbd>Ctrl + B</Kbd>
<Kbd>Ctrl + K</Kbd>... | 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-responsive.tsx | apps/v4/registry/new-york-v4/examples/combobox-responsive.tsx | "use client"
import * as React from "react"
import { useMediaQuery } from "@/hooks/use-media-query"
import { Button } from "@/registry/new-york-v4/ui/button"
import {
Command,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
} from "@/registry/new-york-v4/ui/command"
import {
Drawer,
... | 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-demo.tsx | apps/v4/registry/new-york-v4/examples/carousel-demo.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 CarouselDemo() {
return (
<Carousel 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/input-with-button.tsx | apps/v4/registry/new-york-v4/examples/input-with-button.tsx | import { Button } from "@/registry/new-york-v4/ui/button"
import { Input } from "@/registry/new-york-v4/ui/input"
export default function InputWithButton() {
return (
<div className="flex w-full max-w-sm items-center gap-2">
<Input type="email" placeholder="Email" />
<Button type="submit" variant="ou... | 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-size.tsx | apps/v4/registry/new-york-v4/examples/spinner-size.tsx | import { Spinner } from "@/registry/new-york-v4/ui/spinner"
export default function SpinnerSize() {
return (
<div className="flex items-center gap-6">
<Spinner className="size-3" />
<Spinner className="size-4" />
<Spinner className="size-6" />
<Spinner className="size-8" />
</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/typography-muted.tsx | apps/v4/registry/new-york-v4/examples/typography-muted.tsx | export default function TypographyMuted() {
return (
<p className="text-muted-foreground text-sm">Enter your email address.</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/form-rhf-password.tsx | apps/v4/registry/new-york-v4/examples/form-rhf-password.tsx | "use client"
import * as React from "react"
import { zodResolver } from "@hookform/resolvers/zod"
import { CheckIcon } from "lucide-react"
import { Controller, useForm, useWatch } from "react-hook-form"
import { toast } from "sonner"
import * as z from "zod"
import { Button } from "@/registry/new-york-v4/ui/button"
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-outline.tsx | apps/v4/registry/new-york-v4/examples/toggle-outline.tsx | import { Italic } from "lucide-react"
import { Toggle } from "@/registry/new-york-v4/ui/toggle"
export default function ToggleOutline() {
return (
<Toggle variant="outline" 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/checkbox-demo.tsx | apps/v4/registry/new-york-v4/examples/checkbox-demo.tsx | "use client"
import { Checkbox } from "@/registry/new-york-v4/ui/checkbox"
import { Label } from "@/registry/new-york-v4/ui/label"
export default function CheckboxDemo() {
return (
<div className="flex flex-col gap-6">
<div className="flex items-center gap-3">
<Checkbox id="terms" />
<Labe... | 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-checkbox.tsx | apps/v4/registry/new-york-v4/examples/form-tanstack-checkbox.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/button-size.tsx | apps/v4/registry/new-york-v4/examples/button-size.tsx | import { ArrowUpRightIcon } from "lucide-react"
import { Button } from "@/registry/new-york-v4/ui/button"
export default function ButtonSize() {
return (
<div className="flex flex-col items-start gap-8 sm:flex-row">
<div className="flex items-start gap-2">
<Button size="sm" variant="outline">
... | 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/avatar-demo.tsx | apps/v4/registry/new-york-v4/examples/avatar-demo.tsx | import {
Avatar,
AvatarFallback,
AvatarImage,
} from "@/registry/new-york-v4/ui/avatar"
export default function AvatarDemo() {
return (
<div className="flex flex-row flex-wrap items-center gap-12">
<Avatar>
<AvatarImage src="https://github.com/shadcn.png" alt="@shadcn" />
<AvatarFallb... | 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-blockquote.tsx | apps/v4/registry/new-york-v4/examples/typography-blockquote.tsx | export default function TypographyBlockquote() {
return (
<blockquote className="mt-6 border-l-2 pl-6 italic">
"After all," he said, "everyone enjoys a good joke, so
it's only fair that they should pay for the privilege."
</blockquote>
)
}
| 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-switch.tsx | apps/v4/registry/new-york-v4/examples/form-rhf-switch.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-variant.tsx | apps/v4/registry/new-york-v4/examples/item-variant.tsx | import { Button } from "@/registry/new-york-v4/ui/button"
import {
Item,
ItemActions,
ItemContent,
ItemDescription,
ItemTitle,
} from "@/registry/new-york-v4/ui/item"
export default function ItemVariant() {
return (
<div className="flex flex-col gap-6">
<Item>
<ItemContent>
<Ite... | 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-array.tsx | apps/v4/registry/new-york-v4/examples/form-rhf-array.tsx | "use client"
import * as React from "react"
import { zodResolver } from "@hookform/resolvers/zod"
import { XIcon } from "lucide-react"
import { Controller, useFieldArray, useForm } from "react-hook-form"
import { toast } from "sonner"
import * as z from "zod"
import { Button } from "@/registry/new-york-v4/ui/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/command-dialog.tsx | apps/v4/registry/new-york-v4/examples/command-dialog.tsx | "use client"
import * as React from "react"
import {
Calculator,
Calendar,
CreditCard,
Settings,
Smile,
User,
} from "lucide-react"
import {
CommandDialog,
CommandEmpty,
CommandGroup,
CommandInput,
CommandItem,
CommandList,
CommandSeparator,
CommandShortcut,
} 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/button-group-input.tsx | apps/v4/registry/new-york-v4/examples/button-group-input.tsx | import { SearchIcon } 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"
export default function ButtonGroupInput() {
return (
<ButtonGroup>
<Input placeh... | 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-presets.tsx | apps/v4/registry/new-york-v4/examples/date-picker-with-presets.tsx | "use client"
import * as React from "react"
import { addDays, 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,
PopoverConte... | 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.tsx | apps/v4/registry/new-york-v4/examples/chart-bar-demo.tsx | "use client"
import { Bar, BarChart } 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, mobile: 120 },
{ ... | 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-responsive.tsx | apps/v4/registry/new-york-v4/examples/field-responsive.tsx | import { Button } from "@/registry/new-york-v4/ui/button"
import {
Field,
FieldContent,
FieldDescription,
FieldGroup,
FieldLabel,
FieldLegend,
FieldSeparator,
FieldSet,
} from "@/registry/new-york-v4/ui/field"
import { Input } from "@/registry/new-york-v4/ui/input"
import { Textarea } from "@/registry/n... | 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-demo.tsx | apps/v4/registry/new-york-v4/examples/badge-demo.tsx | import { AlertCircleIcon, BadgeCheckIcon, CheckIcon } from "lucide-react"
import { Badge } from "@/registry/new-york-v4/ui/badge"
export default function BadgeDemo() {
return (
<div className="flex flex-col items-center gap-2">
<div className="flex w-full flex-wrap gap-2">
<Badge>Badge</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/input-with-label.tsx | apps/v4/registry/new-york-v4/examples/input-with-label.tsx | import { Input } from "@/registry/new-york-v4/ui/input"
import { Label } from "@/registry/new-york-v4/ui/label"
export default function InputWithLabel() {
return (
<div className="grid w-full max-w-sm items-center gap-3">
<Label htmlFor="email">Email</Label>
<Input type="email" id="email" placeholder... | 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-destructive.tsx | apps/v4/registry/new-york-v4/examples/alert-destructive.tsx | import { AlertCircleIcon } from "lucide-react"
import {
Alert,
AlertDescription,
AlertTitle,
} from "@/registry/new-york-v4/ui/alert"
export default function AlertDestructive() {
return (
<Alert variant="destructive">
<AlertCircleIcon />
<AlertTitle>Error</AlertTitle>
<AlertDescription>
... | 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-input-group.tsx | apps/v4/registry/new-york-v4/examples/button-group-input-group.tsx | "use client"
import * as React from "react"
import { AudioLinesIcon, PlusIcon } from "lucide-react"
import { Button } from "@/registry/new-york-v4/ui/button"
import { ButtonGroup } from "@/registry/new-york-v4/ui/button-group"
import {
InputGroup,
InputGroupAddon,
InputGroupButton,
InputGroupInput,
} 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/button-group-size.tsx | apps/v4/registry/new-york-v4/examples/button-group-size.tsx | import { 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 ButtonGroupSize() {
return (
<div className="flex flex-col items-start gap-8">
<ButtonGroup>
<Button varian... | 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-handle.tsx | apps/v4/registry/new-york-v4/examples/resizable-handle.tsx | import {
ResizableHandle,
ResizablePanel,
ResizablePanelGroup,
} from "@/registry/new-york-v4/ui/resizable"
export default function ResizableHandleDemo() {
return (
<ResizablePanelGroup
direction="horizontal"
className="min-h-[200px] max-w-md rounded-lg border md:min-w-[450px]"
>
<Res... | 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-icon.tsx | apps/v4/registry/new-york-v4/examples/button-icon.tsx | import { CircleFadingArrowUpIcon } from "lucide-react"
import { Button } from "@/registry/new-york-v4/ui/button"
export default function ButtonIcon() {
return (
<Button variant="outline" size="icon">
<CircleFadingArrowUpIcon />
</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-demo.tsx | apps/v4/registry/new-york-v4/examples/typography-demo.tsx | export default function TypographyDemo() {
return (
<div>
<h1 className="scroll-m-20 text-4xl font-extrabold tracking-tight text-balance">
Taxing Laughter: The Joke Tax Chronicles
</h1>
<p className="text-muted-foreground text-xl leading-7 [&:not(:first-child)]:mt-6">
Once upon a... | 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-tooltip.tsx | apps/v4/registry/new-york-v4/examples/chart-bar-demo-tooltip.tsx | "use client"
import { Bar, BarChart, CartesianGrid, XAxis } from "recharts"
import {
ChartContainer,
ChartTooltip,
ChartTooltipContent,
type ChartConfig,
} from "@/registry/new-york-v4/ui/chart"
const chartData = [
{ month: "January", desktop: 186, mobile: 80 },
{ month: "February", desktop: 305, mobile:... | 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-basic.tsx | apps/v4/registry/new-york-v4/examples/spinner-basic.tsx | import { Spinner } from "@/registry/new-york-v4/ui/spinner"
export default function SpinnerBasic() {
return (
<div className="flex flex-col items-center justify-center gap-8">
<Spinner />
</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-group-separator.tsx | apps/v4/registry/new-york-v4/examples/button-group-separator.tsx | import { Button } from "@/registry/new-york-v4/ui/button"
import {
ButtonGroup,
ButtonGroupSeparator,
} from "@/registry/new-york-v4/ui/button-group"
export default function ButtonGroupSeparatorDemo() {
return (
<ButtonGroup>
<Button variant="secondary" size="sm">
Copy
</Button>
<Bu... | 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-small.tsx | apps/v4/registry/new-york-v4/examples/typography-small.tsx | export default function TypographySmall() {
return (
<small className="text-sm leading-none font-medium">Email address</small>
)
}
| 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/label-demo.tsx | apps/v4/registry/new-york-v4/examples/label-demo.tsx | import { Checkbox } from "@/registry/new-york-v4/ui/checkbox"
import { Label } from "@/registry/new-york-v4/ui/label"
export default function LabelDemo() {
return (
<div>
<div className="flex items-center space-x-2">
<Checkbox id="terms" />
<Label htmlFor="terms">Accept terms and conditions... | 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-horizontal-demo.tsx | apps/v4/registry/new-york-v4/examples/scroll-area-horizontal-demo.tsx | import * as React from "react"
import Image from "next/image"
import { ScrollArea, ScrollBar } from "@/registry/new-york-v4/ui/scroll-area"
export interface Artwork {
artist: string
art: string
}
export const works: Artwork[] = [
{
artist: "Ornella Binni",
art: "https://images.unsplash.com/photo-146586... | 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-custom.tsx | apps/v4/registry/new-york-v4/examples/input-group-custom.tsx | "use client"
import TextareaAutosize from "react-textarea-autosize"
import {
InputGroup,
InputGroupAddon,
InputGroupButton,
} from "@/registry/new-york-v4/ui/input-group"
export default function InputGroupCustom() {
return (
<div className="grid w-full max-w-sm gap-6">
<InputGroup>
<Textare... | 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/lib/utils.ts | apps/v4/registry/new-york-v4/lib/utils.ts | import { clsx, type ClassValue } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
| 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/lib/_registry.ts | apps/v4/registry/new-york-v4/lib/_registry.ts | import { type Registry } from "shadcn/schema"
export const lib: Registry["items"] = [
{
name: "utils",
type: "registry:lib",
dependencies: ["clsx", "tailwind-merge"],
files: [
{
path: "lib/utils.ts",
type: "registry:lib",
},
],
},
]
| 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/ui/sonner.tsx | apps/v4/registry/new-york-v4/ui/sonner.tsx | "use client"
import {
CircleCheckIcon,
InfoIcon,
Loader2Icon,
OctagonXIcon,
TriangleAlertIcon,
} from "lucide-react"
import { useTheme } from "next-themes"
import { Toaster as Sonner, type ToasterProps } from "sonner"
const Toaster = ({ ...props }: ToasterProps) => {
const { theme = "system" } = useTheme(... | 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/ui/table.tsx | apps/v4/registry/new-york-v4/ui/table.tsx | "use client"
import * as React from "react"
import { cn } from "@/lib/utils"
function Table({ className, ...props }: React.ComponentProps<"table">) {
return (
<div
data-slot="table-container"
className="relative w-full overflow-x-auto"
>
<table
data-slot="table"
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/ui/form.tsx | apps/v4/registry/new-york-v4/ui/form.tsx | "use client"
import * as React from "react"
import type * as LabelPrimitive from "@radix-ui/react-label"
import { Slot } from "@radix-ui/react-slot"
import {
Controller,
FormProvider,
useFormContext,
useFormState,
type ControllerProps,
type FieldPath,
type FieldValues,
} from "react-hook-form"
import { ... | 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/ui/collapsible.tsx | apps/v4/registry/new-york-v4/ui/collapsible.tsx | "use client"
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"
function Collapsible({
...props
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>) {
return <CollapsiblePrimitive.Root data-slot="collapsible" {...props} />
}
function CollapsibleTrigger({
...props
}: React.ComponentProps<... | 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/ui/avatar.tsx | apps/v4/registry/new-york-v4/ui/avatar.tsx | "use client"
import * as React from "react"
import * as AvatarPrimitive from "@radix-ui/react-avatar"
import { cn } from "@/lib/utils"
function Avatar({
className,
...props
}: React.ComponentProps<typeof AvatarPrimitive.Root>) {
return (
<AvatarPrimitive.Root
data-slot="avatar"
className={cn(
... | 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/ui/aspect-ratio.tsx | apps/v4/registry/new-york-v4/ui/aspect-ratio.tsx | "use client"
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio"
function AspectRatio({
...props
}: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {
return <AspectRatioPrimitive.Root data-slot="aspect-ratio" {...props} />
}
export { AspectRatio }
| 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/ui/navigation-menu.tsx | apps/v4/registry/new-york-v4/ui/navigation-menu.tsx | import * as React from "react"
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu"
import { cva } from "class-variance-authority"
import { ChevronDownIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function NavigationMenu({
className,
children,
viewport = true,
...props
}: R... | 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/ui/progress.tsx | apps/v4/registry/new-york-v4/ui/progress.tsx | "use client"
import * as React from "react"
import * as ProgressPrimitive from "@radix-ui/react-progress"
import { cn } from "@/lib/utils"
function Progress({
className,
value,
...props
}: React.ComponentProps<typeof ProgressPrimitive.Root>) {
return (
<ProgressPrimitive.Root
data-slot="progress"
... | 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/ui/menubar.tsx | apps/v4/registry/new-york-v4/ui/menubar.tsx | "use client"
import * as React from "react"
import * as MenubarPrimitive from "@radix-ui/react-menubar"
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function Menubar({
className,
...props
}: React.ComponentProps<typeof MenubarPrimitive.Root>) {
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/ui/spinner.tsx | apps/v4/registry/new-york-v4/ui/spinner.tsx | import { Loader2Icon } from "lucide-react"
import { cn } from "@/lib/utils"
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
return (
<Loader2Icon
role="status"
aria-label="Loading"
className={cn("size-4 animate-spin", className)}
{...props}
/>
)
}
export {... | 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/ui/breadcrumb.tsx | apps/v4/registry/new-york-v4/ui/breadcrumb.tsx | import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { ChevronRight, MoreHorizontal } from "lucide-react"
import { cn } from "@/lib/utils"
function Breadcrumb({ ...props }: React.ComponentProps<"nav">) {
return <nav aria-label="breadcrumb" data-slot="breadcrumb" {...props} />
}
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/ui/dialog.tsx | apps/v4/registry/new-york-v4/ui/dialog.tsx | "use client"
import * as React from "react"
import * as DialogPrimitive from "@radix-ui/react-dialog"
import { XIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function Dialog({
...props
}: React.ComponentProps<typeof DialogPrimitive.Root>) {
return <DialogPrimitive.Root data-slot="dialog" {...props}... | 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/ui/label.tsx | apps/v4/registry/new-york-v4/ui/label.tsx | "use client"
import * as React from "react"
import * as LabelPrimitive from "@radix-ui/react-label"
import { cn } from "@/lib/utils"
function Label({
className,
...props
}: React.ComponentProps<typeof LabelPrimitive.Root>) {
return (
<LabelPrimitive.Root
data-slot="label"
className={cn(
... | 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/ui/drawer.tsx | apps/v4/registry/new-york-v4/ui/drawer.tsx | "use client"
import * as React from "react"
import { Drawer as DrawerPrimitive } from "vaul"
import { cn } from "@/lib/utils"
function Drawer({
...props
}: React.ComponentProps<typeof DrawerPrimitive.Root>) {
return <DrawerPrimitive.Root data-slot="drawer" {...props} />
}
function DrawerTrigger({
...props
}: ... | 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/ui/toggle.tsx | apps/v4/registry/new-york-v4/ui/toggle.tsx | "use client"
import * as React from "react"
import * as TogglePrimitive from "@radix-ui/react-toggle"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const toggleVariants = cva(
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg... | 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/ui/tabs.tsx | apps/v4/registry/new-york-v4/ui/tabs.tsx | "use client"
import * as React from "react"
import * as TabsPrimitive from "@radix-ui/react-tabs"
import { cn } from "@/lib/utils"
function Tabs({
className,
...props
}: React.ComponentProps<typeof TabsPrimitive.Root>) {
return (
<TabsPrimitive.Root
data-slot="tabs"
className={cn("flex flex-col... | 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/ui/native-select.tsx | apps/v4/registry/new-york-v4/ui/native-select.tsx | import * as React from "react"
import { ChevronDownIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function NativeSelect({
className,
size = "default",
...props
}: Omit<React.ComponentProps<"select">, "size"> & { size?: "sm" | "default" }) {
return (
<div
className="group/native-select r... | 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/ui/button.tsx | apps/v4/registry/new-york-v4/ui/button.tsx | import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const buttonVariants = cva(
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all dis... | 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/ui/sidebar.tsx | apps/v4/registry/new-york-v4/ui/sidebar.tsx | "use client"
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { PanelLeftIcon } from "lucide-react"
import { useIsMobile } from "@/registry/new-york-v4/hooks/use-mobile"
import { cn } from "@/registry/new-york-v4/lib/ut... | 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/ui/item.tsx | apps/v4/registry/new-york-v4/ui/item.tsx | import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
import { Separator } from "@/registry/new-york-v4/ui/separator"
function ItemGroup({ className, ...props }: React.ComponentProps<"div">) {
ret... | 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/ui/popover.tsx | apps/v4/registry/new-york-v4/ui/popover.tsx | "use client"
import * as React from "react"
import * as PopoverPrimitive from "@radix-ui/react-popover"
import { cn } from "@/lib/utils"
function Popover({
...props
}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
return <PopoverPrimitive.Root data-slot="popover" {...props} />
}
function PopoverTrigger(... | 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/ui/textarea.tsx | apps/v4/registry/new-york-v4/ui/textarea.tsx | import * as React from "react"
import { cn } from "@/lib/utils"
function Textarea({ className, ...props }: React.ComponentProps<"textarea">) {
return (
<textarea
data-slot="textarea"
className={cn(
"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-r... | 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/ui/resizable.tsx | apps/v4/registry/new-york-v4/ui/resizable.tsx | "use client"
import * as React from "react"
import { GripVerticalIcon } from "lucide-react"
import * as ResizablePrimitive from "react-resizable-panels"
import { cn } from "@/lib/utils"
function ResizablePanelGroup({
className,
...props
}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) {
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/ui/accordion.tsx | apps/v4/registry/new-york-v4/ui/accordion.tsx | "use client"
import * as React from "react"
import * as AccordionPrimitive from "@radix-ui/react-accordion"
import { ChevronDownIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function Accordion({
...props
}: React.ComponentProps<typeof AccordionPrimitive.Root>) {
return <AccordionPrimitive.Root data... | 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/ui/dropdown-menu.tsx | apps/v4/registry/new-york-v4/ui/dropdown-menu.tsx | "use client"
import * as React from "react"
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function DropdownMenu({
...props
}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
... | 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/ui/switch.tsx | apps/v4/registry/new-york-v4/ui/switch.tsx | "use client"
import * as React from "react"
import * as SwitchPrimitive from "@radix-ui/react-switch"
import { cn } from "@/lib/utils"
function Switch({
className,
...props
}: React.ComponentProps<typeof SwitchPrimitive.Root>) {
return (
<SwitchPrimitive.Root
data-slot="switch"
className={cn(
... | 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/ui/field.tsx | apps/v4/registry/new-york-v4/ui/field.tsx | "use client"
import { useMemo } from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
import { Label } from "@/registry/new-york-v4/ui/label"
import { Separator } from "@/registry/new-york-v4/ui/separator"
function FieldSet({ className, ...props }: React.Comp... | 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/ui/slider.tsx | apps/v4/registry/new-york-v4/ui/slider.tsx | "use client"
import * as React from "react"
import * as SliderPrimitive from "@radix-ui/react-slider"
import { cn } from "@/lib/utils"
function Slider({
className,
defaultValue,
value,
min = 0,
max = 100,
...props
}: React.ComponentProps<typeof SliderPrimitive.Root>) {
const _values = React.useMemo(
... | 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/ui/carousel.tsx | apps/v4/registry/new-york-v4/ui/carousel.tsx | "use client"
import * as React from "react"
import useEmblaCarousel, {
type UseEmblaCarouselType,
} from "embla-carousel-react"
import { ArrowLeft, ArrowRight } from "lucide-react"
import { cn } from "@/lib/utils"
import { Button } from "@/registry/new-york-v4/ui/button"
type CarouselApi = UseEmblaCarouselType[1]
... | 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/ui/separator.tsx | apps/v4/registry/new-york-v4/ui/separator.tsx | "use client"
import * as React from "react"
import * as SeparatorPrimitive from "@radix-ui/react-separator"
import { cn } from "@/lib/utils"
function Separator({
className,
orientation = "horizontal",
decorative = true,
...props
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
return (
<Separ... | 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/ui/_registry.ts | apps/v4/registry/new-york-v4/ui/_registry.ts | import { type Registry } from "shadcn/schema"
export const ui: Registry["items"] = [
{
name: "accordion",
type: "registry:ui",
dependencies: ["@radix-ui/react-accordion"],
files: [
{
path: "ui/accordion.tsx",
type: "registry:ui",
},
],
},
{
name: "alert",
t... | 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/ui/sheet.tsx | apps/v4/registry/new-york-v4/ui/sheet.tsx | "use client"
import * as React from "react"
import * as SheetPrimitive from "@radix-ui/react-dialog"
import { XIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
return <SheetPrimitive.Root data-slot="sheet" {...props} />
}
... | 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/ui/scroll-area.tsx | apps/v4/registry/new-york-v4/ui/scroll-area.tsx | "use client"
import * as React from "react"
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
import { cn } from "@/lib/utils"
function ScrollArea({
className,
children,
...props
}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
return (
<ScrollAreaPrimitive.Root
data-slo... | 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/ui/kbd.tsx | apps/v4/registry/new-york-v4/ui/kbd.tsx | import { cn } from "@/lib/utils"
function Kbd({ className, ...props }: React.ComponentProps<"kbd">) {
return (
<kbd
data-slot="kbd"
className={cn(
"bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text... | 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/ui/card.tsx | apps/v4/registry/new-york-v4/ui/card.tsx | import * as React from "react"
import { cn } from "@/lib/utils"
function Card({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="card"
className={cn(
"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
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/ui/hover-card.tsx | apps/v4/registry/new-york-v4/ui/hover-card.tsx | "use client"
import * as React from "react"
import * as HoverCardPrimitive from "@radix-ui/react-hover-card"
import { cn } from "@/lib/utils"
function HoverCard({
...props
}: React.ComponentProps<typeof HoverCardPrimitive.Root>) {
return <HoverCardPrimitive.Root data-slot="hover-card" {...props} />
}
function H... | 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/ui/alert.tsx | apps/v4/registry/new-york-v4/ui/alert.tsx | import * as React from "react"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const alertVariants = cva(
"relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 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/ui/toggle-group.tsx | apps/v4/registry/new-york-v4/ui/toggle-group.tsx | "use client"
import * as React from "react"
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
import { type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
import { toggleVariants } from "@/registry/new-york-v4/ui/toggle"
const ToggleGroupContext = React.createConte... | 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/ui/badge.tsx | apps/v4/registry/new-york-v4/ui/badge.tsx | import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
const badgeVariants = cva(
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowra... | 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/ui/skeleton.tsx | apps/v4/registry/new-york-v4/ui/skeleton.tsx | import { cn } from "@/lib/utils"
function Skeleton({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="skeleton"
className={cn("bg-accent animate-pulse rounded-md", className)}
{...props}
/>
)
}
export { Skeleton }
| 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/ui/button-group.tsx | apps/v4/registry/new-york-v4/ui/button-group.tsx | import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
import { Separator } from "@/registry/new-york-v4/ui/separator"
const buttonGroupVariants = cva(
"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relat... | 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/ui/tooltip.tsx | apps/v4/registry/new-york-v4/ui/tooltip.tsx | "use client"
import * as React from "react"
import * as TooltipPrimitive from "@radix-ui/react-tooltip"
import { cn } from "@/lib/utils"
function TooltipProvider({
delayDuration = 0,
...props
}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
return (
<TooltipPrimitive.Provider
data-slot="t... | 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/ui/radio-group.tsx | apps/v4/registry/new-york-v4/ui/radio-group.tsx | "use client"
import * as React from "react"
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"
import { CircleIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function RadioGroup({
className,
...props
}: React.ComponentProps<typeof RadioGroupPrimitive.Root>) {
return (
<RadioGrou... | 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/ui/chart.tsx | apps/v4/registry/new-york-v4/ui/chart.tsx | "use client"
import * as React from "react"
import * as RechartsPrimitive from "recharts"
import { cn } from "@/lib/utils"
// Format: { THEME_NAME: CSS_SELECTOR }
const THEMES = { light: "", dark: ".dark" } as const
export type ChartConfig = {
[k in string]: {
label?: React.ReactNode
icon?: React.Componen... | 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/ui/select.tsx | apps/v4/registry/new-york-v4/ui/select.tsx | "use client"
import * as React from "react"
import * as SelectPrimitive from "@radix-ui/react-select"
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"
import { cn } from "@/lib/utils"
function Select({
...props
}: React.ComponentProps<typeof SelectPrimitive.Root>) {
return <SelectPrimitiv... | 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/ui/pagination.tsx | apps/v4/registry/new-york-v4/ui/pagination.tsx | import * as React from "react"
import {
ChevronLeftIcon,
ChevronRightIcon,
MoreHorizontalIcon,
} from "lucide-react"
import { cn } from "@/lib/utils"
import { buttonVariants, type Button } from "@/registry/new-york-v4/ui/button"
function Pagination({ className, ...props }: React.ComponentProps<"nav">) {
retur... | 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/ui/empty.tsx | apps/v4/registry/new-york-v4/ui/empty.tsx | import { cva, type VariantProps } from "class-variance-authority"
import { cn } from "@/lib/utils"
function Empty({ className, ...props }: React.ComponentProps<"div">) {
return (
<div
data-slot="empty"
className={cn(
"flex min-w-0 flex-1 flex-col items-center justify-center gap-6 rounded-lg ... | typescript | MIT | ccafdaf7c6f6747a24f54e84436b42ec42f01779 | 2026-01-04T15:25:31.746168Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.