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/app/(app)/colors/page.tsx
apps/v4/app/(app)/colors/page.tsx
import { getColors } from "@/lib/colors" import { ColorPalette } from "@/components/color-palette" export const dynamic = "force-static" export const revalidate = false export default function ColorsPage() { const colors = getColors() return ( <div className="grid gap-8 lg:gap-16 xl:gap-20"> {colors.ma...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/app/(view)/view/[style]/[name]/page.tsx
apps/v4/app/(view)/view/[style]/[name]/page.tsx
/* eslint-disable react-hooks/static-components */ import * as React from "react" import { type Metadata } from "next" import { notFound } from "next/navigation" import { siteConfig } from "@/lib/config" import { getRegistryComponent, getRegistryItem } from "@/lib/registry" import { absoluteUrl } from "@/lib/utils" im...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/app/(view)/view/[style]/[name]/component-preview.tsx
apps/v4/app/(view)/view/[style]/[name]/component-preview.tsx
import { cn } from "@/lib/utils" export function ComponentPreview({ children }: { children: React.ReactNode }) { return <div className={cn("bg-background")}>{children}</div> }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/app/api/search/route.ts
apps/v4/app/api/search/route.ts
import { createFromSource } from "fumadocs-core/search/server" import { source } from "@/lib/source" export const { GET } = createFromSource(source)
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/app/og/route.tsx
apps/v4/app/og/route.tsx
import { ImageResponse } from "next/og" async function loadAssets(): Promise< { name: string; data: Buffer; weight: 400 | 600; style: "normal" }[] > { const [ { base64Font: normal }, { base64Font: mono }, { base64Font: semibold }, ] = await Promise.all([ import("./geist-regular-otf.json").then((m...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/hooks/use-config.ts
apps/v4/hooks/use-config.ts
import { useAtom } from "jotai" import { atomWithStorage } from "jotai/utils" type Config = { style: "new-york-v4" packageManager: "npm" | "yarn" | "pnpm" | "bun" installationType: "cli" | "manual" } const configAtom = atomWithStorage<Config>("config", { style: "new-york-v4", packageManager: "pnpm", insta...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/hooks/use-layout.tsx
apps/v4/hooks/use-layout.tsx
"use client" import * as React from "react" type Layout = "fixed" | "full" interface LayoutProviderProps { children: React.ReactNode defaultLayout?: Layout forcedLayout?: Layout storageKey?: string attribute?: string | string[] value?: Record<string, string> } interface LayoutProviderState { layout: L...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/hooks/use-meta-color.ts
apps/v4/hooks/use-meta-color.ts
import * as React from "react" import { useTheme } from "next-themes" export const META_THEME_COLORS = { light: "#ffffff", dark: "#0a0a0a", } export function useMetaColor() { const { resolvedTheme } = useTheme() const metaColor = React.useMemo(() => { return resolvedTheme !== "dark" ? META_THEME_CO...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/hooks/use-copy-to-clipboard.ts
apps/v4/hooks/use-copy-to-clipboard.ts
"use client" import * as React from "react" export function useCopyToClipboard({ timeout = 2000, onCopy, }: { timeout?: number onCopy?: () => void } = {}) { const [isCopied, setIsCopied] = React.useState(false) const copyToClipboard = (value: string) => { if (typeof window === "undefined" || !navigat...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/hooks/use-media-query.tsx
apps/v4/hooks/use-media-query.tsx
import * as React from "react" export function useMediaQuery(query: string) { const [value, setValue] = React.useState(false) React.useEffect(() => { function onChange(event: MediaQueryListEvent) { setValue(event.matches) } const result = matchMedia(query) result.addEventListener("change", ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/hooks/use-colors.ts
apps/v4/hooks/use-colors.ts
import { useAtom } from "jotai" import { atomWithStorage } from "jotai/utils" import { type ColorFormat } from "@/lib/colors" import { useMounted } from "@/hooks/use-mounted" type Config = { format: ColorFormat lastCopied: string } const colorsAtom = atomWithStorage<Config>("colors", { format: "hsl", lastCop...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/hooks/use-mounted.ts
apps/v4/hooks/use-mounted.ts
import * as React from "react" export function useMounted() { const [mounted, setMounted] = React.useState(false) React.useEffect(() => { setMounted(true) }, []) return mounted }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/hooks/use-mobile.ts
apps/v4/hooks/use-mobile.ts
import * as React from "react" export function useIsMobile(mobileBreakpoint = 768) { const [isMobile, setIsMobile] = React.useState<boolean | undefined>(undefined) React.useEffect(() => { const mql = window.matchMedia(`(max-width: ${mobileBreakpoint - 1}px)`) const onChange = () => { setIsMobile(win...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/hooks/use-search-registry.ts
apps/v4/hooks/use-search-registry.ts
import { debounce, useQueryState } from "nuqs" import globalRegistries from "@/registry/directory.json" const normalizeQuery = (query: string) => query.toLowerCase().replaceAll(" ", "").replaceAll("@", "") function finderFn<T extends (typeof globalRegistries)[0]>( registry: T, query: string ) { const normali...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/hooks/use-mutation-observer.ts
apps/v4/hooks/use-mutation-observer.ts
import * as React from "react" export const useMutationObserver = ( ref: React.RefObject<HTMLElement | null>, callback: MutationCallback, options: MutationObserverInit = { attributes: true, characterData: true, childList: true, subtree: true, } ) => { React.useEffect(() => { if (ref.curre...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/callout.tsx
apps/v4/components/callout.tsx
import { cn } from "@/lib/utils" import { Alert, AlertDescription, AlertTitle, } from "@/registry/new-york-v4/ui/alert" export function Callout({ title, children, icon, className, variant = "default", ...props }: React.ComponentProps<typeof Alert> & { icon?: React.ReactNode variant?: "default" | ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/docs-copy-page.tsx
apps/v4/components/docs-copy-page.tsx
"use client" import { IconCheck, IconChevronDown, IconCopy } from "@tabler/icons-react" import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard" import { Button } from "@/registry/new-york-v4/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } 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/components/blocks-nav.tsx
apps/v4/components/blocks-nav.tsx
"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { registryCategories } from "@/lib/categories" import { ScrollArea, ScrollBar } from "@/registry/new-york-v4/ui/scroll-area" export function BlocksNav() { const pathname = usePathname() return ( <div className="re...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/color-format-selector.tsx
apps/v4/components/color-format-selector.tsx
"use client" import * as React from "react" import { getColorFormat, type Color } from "@/lib/colors" import { cn } from "@/lib/utils" import { useColors } from "@/hooks/use-colors" import { Select, SelectContent, SelectItem, SelectTrigger, } from "@/registry/new-york-v4/ui/select" import { Skeleton } from "@...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/colors-nav.tsx
apps/v4/components/colors-nav.tsx
"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { getColors } from "@/lib/colors" import { cn } from "@/lib/utils" import { ScrollArea, ScrollBar } from "@/registry/new-york-v4/ui/scroll-area" export function ColorsNav({ className, ...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/components/search-directory.tsx
apps/v4/components/search-directory.tsx
import * as React from "react" import { Search, X } from "lucide-react" import { useSearchRegistry } from "@/hooks/use-search-registry" import { Field } from "@/registry/new-york-v4/ui/field" import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, } from "@/registry/new-york-v4/ui/input-group"...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/theme-selector.tsx
apps/v4/components/theme-selector.tsx
"use client" import { THEMES } from "@/lib/themes" import { cn } from "@/lib/utils" import { useThemeConfig } from "@/components/active-theme" import { Label } from "@/registry/new-york-v4/ui/label" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@/registry/new-york-v4/ui/sele...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/mode-switcher.tsx
apps/v4/components/mode-switcher.tsx
"use client" import * as React from "react" import Script from "next/script" import { useTheme } from "next-themes" import { useMetaColor } from "@/hooks/use-meta-color" import { Button } from "@/registry/new-york-v4/ui/button" import { Kbd } from "@/registry/new-york-v4/ui/kbd" import { Tooltip, TooltipContent, ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/component-preview-tabs.tsx
apps/v4/components/component-preview-tabs.tsx
"use client" import * as React from "react" import { cn } from "@/lib/utils" export function ComponentPreviewTabs({ className, align = "center", hideCode = false, chromeLessOnMobile = false, component, source, ...props }: React.ComponentProps<"div"> & { align?: "center" | "start" | "end" hideCode?:...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/command-menu.tsx
apps/v4/components/command-menu.tsx
"use client" import * as React from "react" import { useRouter } from "next/navigation" import { type DialogProps } from "@radix-ui/react-dialog" import { IconArrowRight } from "@tabler/icons-react" import { useDocsSearch } from "fumadocs-core/search/client" import { CornerDownLeftIcon, SquareDashedIcon } from "lucide...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/component-wrapper.tsx
apps/v4/components/component-wrapper.tsx
"use client" import * as React from "react" import { cn } from "@/registry/new-york-v4/lib/utils" export function ComponentWrapper({ className, name, children, ...props }: React.ComponentPropsWithoutRef<"div"> & { name: string }) { return ( <ComponentErrorBoundary name={name}> <div id={na...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/code-block-command.tsx
apps/v4/components/code-block-command.tsx
"use client" import * as React from "react" import { IconCheck, IconCopy, IconTerminal } from "@tabler/icons-react" import { useConfig } from "@/hooks/use-config" import { copyToClipboardWithMeta } from "@/components/copy-button" import { Button } from "@/registry/new-york-v4/ui/button" import { Tabs, TabsContent...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/block-viewer.tsx
apps/v4/components/block-viewer.tsx
"use client" import * as React from "react" import Image from "next/image" import Link from "next/link" import { Check, ChevronRight, Clipboard, File, Folder, Fullscreen, Monitor, RotateCw, Smartphone, Tablet, Terminal, } from "lucide-react" import { type ImperativePanelHandle } from "react-resiz...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/page-nav.tsx
apps/v4/components/page-nav.tsx
import { cn } from "@/lib/utils" export function PageNav({ children, className, ...props }: React.ComponentProps<"div">) { return ( <div className={cn("container-wrapper scroll-mt-24", className)} {...props}> <div className="container flex items-center justify-between gap-4 py-4"> {children} ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/open-in-v0-cta.tsx
apps/v4/components/open-in-v0-cta.tsx
import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" export function OpenInV0Cta({ className }: React.ComponentProps<"div">) { return ( <div className={cn( "group bg-surface text-surface-foreground relative flex flex-col gap-2 rounded-lg p-6 text-sm", c...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/analytics.tsx
apps/v4/components/analytics.tsx
"use client" import { Analytics as VercelAnalytics } from "@vercel/analytics/react" export function Analytics() { return <VercelAnalytics /> }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/directory-add-button.tsx
apps/v4/components/directory-add-button.tsx
"use client" import * as React from "react" import Link from "next/link" import { IconCheck } from "@tabler/icons-react" import { cn } from "@/lib/utils" import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard" import { useIsMobile } from "@/hooks/use-mobile" import { CopyButton } from "@/components/copy-bu...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/nav-user.tsx
apps/v4/components/nav-user.tsx
"use client" import { BadgeCheck, Bell, ChevronsUpDown, CreditCard, LogOut, Sparkles, } from "lucide-react" import { Avatar, AvatarFallback, AvatarImage, } from "@/registry/new-york-v4/ui/avatar" import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuL...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/directory-list.tsx
apps/v4/components/directory-list.tsx
"use client" import * as React from "react" import { IconArrowUpRight } from "@tabler/icons-react" import { useSearchRegistry } from "@/hooks/use-search-registry" import { DirectoryAddButton } from "@/components/directory-add-button" import globalRegistries from "@/registry/directory.json" import { Button } from "@/r...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/main-nav.tsx
apps/v4/components/main-nav.tsx
"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { PAGES_NEW } from "@/lib/docs" import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" export function MainNav({ items, className, ...props }: React.ComponentProps<"nav"> & { ite...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/announcement.tsx
apps/v4/components/announcement.tsx
import Link from "next/link" import { ArrowRightIcon } from "lucide-react" import { Badge } from "@/registry/new-york-v4/ui/badge" export function Announcement() { return ( <Badge asChild variant="secondary" className="bg-transparent"> <Link href="/docs/changelog"> <span className="flex size-2 rou...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/charts-nav.tsx
apps/v4/components/charts-nav.tsx
"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { ScrollArea, ScrollBar } from "@/registry/new-york-v4/ui/scroll-area" const links = [ { name: "Area Charts", href: "/charts/area#charts", }, { name: "Bar Charts", hre...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/examples-nav.tsx
apps/v4/components/examples-nav.tsx
"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { ScrollArea, ScrollBar } from "@/registry/new-york-v4/ui/scroll-area" const examples = [ { name: "Dashboard", href: "/examples/dashboard", code: "https://github.com/shadcn/ui...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/component-source.tsx
apps/v4/components/component-source.tsx
import fs from "node:fs/promises" import path from "node:path" import * as React from "react" import { highlightCode } from "@/lib/highlight-code" import { getRegistryItem } from "@/lib/registry" import { cn } from "@/lib/utils" import { CodeCollapsibleWrapper } from "@/components/code-collapsible-wrapper" import { Co...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/tailwind-indicator.tsx
apps/v4/components/tailwind-indicator.tsx
const SHOW = false export function TailwindIndicator({ forceMount = false, }: { forceMount?: boolean }) { if (process.env.NODE_ENV === "production" || (!SHOW && !forceMount)) { return null } return ( <div data-tailwind-indicator="" className="fixed bottom-1 left-1 z-50 flex h-6 w-6 items...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/chart-code-viewer.tsx
apps/v4/components/chart-code-viewer.tsx
import * as React from "react" import { cn } from "@/lib/utils" import { useMediaQuery } from "@/hooks/use-media-query" import { ChartCopyButton } from "@/components/chart-copy-button" import { type Chart } from "@/components/chart-display" import { getIconForLanguageExtension } from "@/components/icons" import { Open...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/theme-customizer.tsx
apps/v4/components/theme-customizer.tsx
"use client" import * as React from "react" import { IconCheck, IconCopy } from "@tabler/icons-react" import template from "lodash/template" import { THEMES } from "@/lib/themes" import { cn } from "@/lib/utils" import { useThemeConfig } from "@/components/active-theme" import { copyToClipboardWithMeta } from "@/comp...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/site-footer.tsx
apps/v4/components/site-footer.tsx
import { siteConfig } from "@/lib/config" export function SiteFooter() { return ( <footer className="group-has-[.section-soft]/body:bg-surface/40 3xl:fixed:bg-transparent group-has-[.docs-nav]/body:pb-20 group-has-[[data-slot=designer]]/body:hidden group-has-[.docs-nav]/body:sm:pb-0 dark:bg-transparent"> <...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/site-header.tsx
apps/v4/components/site-header.tsx
import Link from "next/link" import { PlusSignIcon } from "@hugeicons/core-free-icons" import { HugeiconsIcon } from "@hugeicons/react" import { getColors } from "@/lib/colors" import { siteConfig } from "@/lib/config" import { source } from "@/lib/source" import { CommandMenu } from "@/components/command-menu" import...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/mobile-nav.tsx
apps/v4/components/mobile-nav.tsx
"use client" import * as React from "react" import Link, { type LinkProps } from "next/link" import { useRouter } from "next/navigation" import { PAGES_NEW } from "@/lib/docs" import { showMcpDocs } from "@/lib/flags" import { type source } from "@/lib/source" import { cn } from "@/lib/utils" import { Button } from "...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/code-collapsible-wrapper.tsx
apps/v4/components/code-collapsible-wrapper.tsx
"use client" import * as React from "react" import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "@/registry/new-york-v4/ui/collapsible" import { Separator } from "@/registry/new-york-v4/ui/separator" exp...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/code-tabs.tsx
apps/v4/components/code-tabs.tsx
"use client" import * as React from "react" import { useConfig } from "@/hooks/use-config" import { Tabs } from "@/registry/new-york-v4/ui/tabs" export function CodeTabs({ children }: React.ComponentProps<typeof Tabs>) { const [config, setConfig] = useConfig() const installationType = 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/components/chart-display.tsx
apps/v4/components/chart-display.tsx
import * as React from "react" import { type registryItemSchema } from "shadcn/schema" import { type z } from "zod" import { highlightCode } from "@/lib/highlight-code" import { getRegistryItem } from "@/lib/registry" import { cn } from "@/lib/utils" import { ChartToolbar } from "@/components/chart-toolbar" import { t...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/docs-breadcrumb.tsx
apps/v4/components/docs-breadcrumb.tsx
"use client" import { Fragment } from "react" import Link from "next/link" import { usePathname } from "next/navigation" import { useBreadcrumb } from "fumadocs-core/breadcrumb" import type { Root } from "fumadocs-core/page-tree" import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, Breadcrum...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/chart-toolbar.tsx
apps/v4/components/chart-toolbar.tsx
"use client" import { AreaChartIcon, BarChartBigIcon, HexagonIcon, LineChartIcon, MousePointer2Icon, PieChartIcon, RadarIcon, } from "lucide-react" import { cn } from "@/lib/utils" import { ChartCodeViewer } from "@/components/chart-code-viewer" import { ChartCopyButton } from "@/components/chart-copy-b...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/docs-toc.tsx
apps/v4/components/docs-toc.tsx
"use client" import * as React from "react" import { IconMenu3 } from "@tabler/icons-react" import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/registry/new-york-v4/ui/dropdown-m...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/docs-sidebar.tsx
apps/v4/components/docs-sidebar.tsx
"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { PAGES_NEW } from "@/lib/docs" import { showMcpDocs } from "@/lib/flags" import type { source } from "@/lib/source" import { Sidebar, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, Sideba...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/copy-button.tsx
apps/v4/components/copy-button.tsx
"use client" import * as React from "react" import { IconCheck, IconCopy } from "@tabler/icons-react" import { trackEvent, type Event } from "@/lib/events" import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" import { Tooltip, TooltipContent, TooltipTrigger, } 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/components/block-display.tsx
apps/v4/components/block-display.tsx
import * as React from "react" import { type registryItemFileSchema } from "shadcn/schema" import { type z } from "zod" import { highlightCode } from "@/lib/highlight-code" import { createFileTreeForRegistryItemFiles, getRegistryItem, } from "@/lib/registry" import { cn } from "@/lib/utils" import { BlockViewer } ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/icons.tsx
apps/v4/components/icons.tsx
import { FileIcon } from "lucide-react" type IconProps = React.HTMLAttributes<SVGElement> export const Icons = { logo: (props: IconProps) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" {...props}> <rect width="256" height="256" fill="none" /> <line x1="208" y1="12...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/open-in-v0-button.tsx
apps/v4/components/open-in-v0-button.tsx
import { cn } from "@/lib/utils" import { Icons } from "@/components/icons" import { Button } from "@/registry/new-york-v4/ui/button" // v0 uses the default style. const V0_STYLE = "new-york-v4" export function OpenInV0Button({ name, className, ...props }: React.ComponentProps<typeof Button> & { name: string ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/nav-header.tsx
apps/v4/components/nav-header.tsx
"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { NavigationMenu, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, } from "@/registry/new-york-v4/ui/navigation-menu" export function NavHeader() { const pathname = usePathname() return ( <Navig...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/chart-copy-button.tsx
apps/v4/components/chart-copy-button.tsx
"use client" import * as React from "react" import { IconCheck, IconCopy } from "@tabler/icons-react" import { trackEvent, type Event } from "@/lib/events" import { cn } from "@/lib/utils" import { Button } from "@/registry/new-york-v4/ui/button" import { Tooltip, TooltipContent, TooltipTrigger, } 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/components/github-link.tsx
apps/v4/components/github-link.tsx
import * as React from "react" import Link from "next/link" import { siteConfig } from "@/lib/config" import { Icons } from "@/components/icons" import { Button } from "@/registry/new-york-v4/ui/button" import { Skeleton } from "@/registry/new-york-v4/ui/skeleton" export function GitHubLink() { return ( <Button...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/theme-provider.tsx
apps/v4/components/theme-provider.tsx
"use client" import * as React from "react" import { ThemeProvider as NextThemesProvider } from "next-themes" export function ThemeProvider({ children, ...props }: React.ComponentProps<typeof NextThemesProvider>) { return ( <NextThemesProvider attribute="class" defaultTheme="system" enable...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/color-palette.tsx
apps/v4/components/color-palette.tsx
import { type ColorPalette } from "@/lib/colors" import { Color } from "@/components/color" import { ColorFormatSelector } from "@/components/color-format-selector" export function ColorPalette({ colorPalette }: { colorPalette: ColorPalette }) { return ( <div id={colorPalette.name} className="scroll-mt-20 rounde...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/site-config.tsx
apps/v4/components/site-config.tsx
"use client" import * as React from "react" import { GalleryHorizontalIcon } from "lucide-react" import { trackEvent } from "@/lib/events" import { cn } from "@/lib/utils" import { useLayout } from "@/hooks/use-layout" import { Button } from "@/registry/new-york-v4/ui/button" export function SiteConfig({ className }...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/components-list.tsx
apps/v4/components/components-list.tsx
import Link from "next/link" import { PAGES_NEW } from "@/lib/docs" import { source } from "@/lib/source" export function ComponentsList() { const components = source.pageTree.children.find( (page) => page.$id === "components" ) if (components?.type !== "folder") { return } const list = components...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/page-header.tsx
apps/v4/components/page-header.tsx
import { cn } from "@/lib/utils" function PageHeader({ className, children, ...props }: React.ComponentProps<"section">) { return ( <section className={cn("border-grid", className)} {...props}> <div className="container-wrapper"> <div className="container flex flex-col items-center gap-2 py-8...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/active-theme.tsx
apps/v4/components/active-theme.tsx
"use client" import { createContext, useContext, useEffect, useState, type ReactNode, } from "react" const DEFAULT_THEME = "default" type ThemeContextType = { activeTheme: string setActiveTheme: (theme: string) => void } const ThemeContext = createContext<ThemeContextType | undefined>(undefined) expo...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/component-preview.tsx
apps/v4/components/component-preview.tsx
import Image from "next/image" import { ComponentPreviewTabs } from "@/components/component-preview-tabs" import { ComponentSource } from "@/components/component-source" import { Index } from "@/registry/__index__" import { type Style } from "@/registry/_legacy-styles" export function ComponentPreview({ name, sty...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/block-image.tsx
apps/v4/components/block-image.tsx
import Image from "next/image" import { cn } from "@/lib/utils" export function BlockImage({ name, width = 1440, height = 900, className, }: Omit<React.ComponentProps<typeof Image>, "src" | "alt"> & { name: string }) { return ( <div className={cn( "relative aspect-[1440/900] w-full overflo...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/color.tsx
apps/v4/components/color.tsx
"use client" import { Check, Clipboard } from "lucide-react" import { toast } from "sonner" import { type Color } from "@/lib/colors" import { trackEvent } from "@/lib/events" import { useColors } from "@/hooks/use-colors" import { useCopyToClipboard } from "@/hooks/use-copy-to-clipboard" export function Color({ col...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/create-account.tsx
apps/v4/components/cards/create-account.tsx
"use client" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Field, FieldGroup, FieldLabel, FieldSeparator, } from "@/registry/new-york-v4/ui/field" import { Input } from "@/...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/payments.tsx
apps/v4/components/cards/payments.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 { MoreHorizontalIco...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/exercise-minutes.tsx
apps/v4/components/cards/exercise-minutes.tsx
"use client" import { CartesianGrid, Line, LineChart, XAxis } from "recharts" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { ChartContainer, ChartTooltip, ChartTooltipContent, type ChartConfig, } from "@/registry/new-york-v4/ui/ch...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/activity-goal.tsx
apps/v4/components/cards/activity-goal.tsx
"use client" import * as React from "react" import { MinusIcon, PlusIcon } from "lucide-react" import { Bar, BarChart } from "recharts" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } 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/components/cards/cookie-settings.tsx
apps/v4/components/cards/cookie-settings.tsx
"use client" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Field, FieldContent, FieldDescription, FieldLabel, } from "@/registry/new-york-v4/ui/field" import { Switch } fro...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/share.tsx
apps/v4/components/cards/share.tsx
"use client" import { Avatar, AvatarFallback, AvatarImage, } from "@/registry/new-york-v4/ui/avatar" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Input } from "@/registry/ne...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/index.tsx
apps/v4/components/cards/index.tsx
import { CardsActivityGoal } from "@/components/cards/activity-goal" import { CardsCalendar } from "@/components/cards/calendar" import { CardsChat } from "@/components/cards/chat" import { CardsCookieSettings } from "@/components/cards/cookie-settings" import { CardsCreateAccount } from "@/components/cards/create-acco...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/stats.tsx
apps/v4/components/cards/stats.tsx
"use client" import { Area, AreaChart, Line, LineChart } from "recharts" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardAction, CardContent, CardDescription, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { ChartContainer, type ChartConfig, } from "...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/forms.tsx
apps/v4/components/cards/forms.tsx
"use client" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Checkbox } from "@/registry/new-york-v4/ui/checkbox" import { Field, FieldContent, FieldDescription, FieldGroup, ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/report-issue.tsx
apps/v4/components/cards/report-issue.tsx
"use client" import * as React from "react" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Field, FieldGroup, FieldLabel } from "@/registry/new-york-v4/ui/field" import { Input } f...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/payment-method.tsx
apps/v4/components/cards/payment-method.tsx
"use client" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/registry/new-york-v4/ui/card" import { Input } from "@/registry/new-york-v4/ui/input" import { Label } from "@/registry/new-york-v4/ui/label" impo...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/chat.tsx
apps/v4/components/cards/chat.tsx
"use client" import * as React from "react" import { ArrowUpIcon, CheckIcon, PlusIcon } from "lucide-react" import { cn } from "@/lib/utils" import { Avatar, AvatarFallback, AvatarImage, } from "@/registry/new-york-v4/ui/avatar" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardCo...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/cards/team-members.tsx
apps/v4/components/cards/team-members.tsx
"use client" import { ChevronDown } from "lucide-react" import { Avatar, AvatarFallback, AvatarImage, } from "@/registry/new-york-v4/ui/avatar" import { Button } from "@/registry/new-york-v4/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle, } 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/components/cards/calendar.tsx
apps/v4/components/cards/calendar.tsx
"use client" import { addDays } from "date-fns" import { Calendar } from "@/registry/new-york-v4/ui/calendar" import { Card, CardContent } from "@/registry/new-york-v4/ui/card" const start = new Date(2025, 5, 5) export function CardsCalendar() { return ( <Card className="hidden max-w-[260px] p-0 sm:flex"> ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/lo-fi/accordion.tsx
apps/v4/components/lo-fi/accordion.tsx
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react" import { Atom } from "@/components/lo-fi/atom" export function AccordionLoFi() { return ( <div className="flex flex-col"> <div className="flex flex-col gap-1 border-b py-2"> <div className="flex items-center justify-between"> ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/lo-fi/index.tsx
apps/v4/components/lo-fi/index.tsx
import { AccordionLoFi } from "@/components/lo-fi/accordion" import { AlertLoFi } from "@/components/lo-fi/alert" import { Component, ComponentContent, ComponentName, } from "@/components/lo-fi/component" export function LoFi() { return ( <div className="mx-auto grid max-w-[350px] gap-6 sm:max-w-none sm:gr...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/lo-fi/atom.tsx
apps/v4/components/lo-fi/atom.tsx
import * as React from "react" import { cva, type VariantProps } from "class-variance-authority" import { cn } from "@/lib/utils" const atomVariants = cva( "inline-flex rounded-lg border-neutral-300 dark:border-neutral-600", { variants: { shade: { "50": "bg-neutral-50 dark:bg-neutral-900", ...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/lo-fi/alert.tsx
apps/v4/components/lo-fi/alert.tsx
import { CircleAlertIcon } from "lucide-react" import { Atom } from "@/components/lo-fi/atom" export function AlertLoFi() { return ( <Atom shade="100" className="rounder-lg flex items-start justify-between gap-2 border p-2" > <CircleAlertIcon className="size-3" /> <div className="fle...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/components/lo-fi/component.tsx
apps/v4/components/lo-fi/component.tsx
import Link from "next/link" import { Atom } from "@/components/lo-fi/atom" function Component({ href, ...props }: React.ComponentProps<typeof Link>) { return <Link href={href} className="group flex flex-col gap-2" {...props} /> } function ComponentContent({ ...props }: React.ComponentProps<typeof Atom>) { retur...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/config.ts
apps/v4/lib/config.ts
export const siteConfig = { name: "shadcn/ui", url: "https://ui.shadcn.com", ogImage: "https://ui.shadcn.com/og.jpg", description: "A set of beautifully designed components that you can customize, extend, and build on. Start here then make it your own. Open Source. Open Code.", links: { twitter: "http...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/flags.ts
apps/v4/lib/flags.ts
export const showMcpDocs = true
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/highlight-code.ts
apps/v4/lib/highlight-code.ts
import { codeToHtml } from "shiki" import type { ShikiTransformer } from "shiki" export const transformers = [ { code(node) { if (node.tagName === "code") { const raw = this.source node.properties["__raw__"] = raw if (raw.startsWith("npm install")) { node.properties["__np...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/utils.ts
apps/v4/lib/utils.ts
import { clsx, type ClassValue } from "clsx" import { twMerge } from "tailwind-merge" export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)) } export function absoluteUrl(path: string) { return `${process.env.NEXT_PUBLIC_APP_URL}${path}` }
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/llm.ts
apps/v4/lib/llm.ts
import fs from "fs" import { Index } from "@/registry/__index__" import { type Style } from "@/registry/_legacy-styles" export function processMdxForLLMs(content: string, style: Style["name"]) { const componentPreviewRegex = /<ComponentPreview[\s\S]*?name="([^"]+)"[\s\S]*?\/>/g return content.replace(compone...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/rehype.ts
apps/v4/lib/rehype.ts
import fs from "fs" import path from "path" import { u } from "unist-builder" import { visit } from "unist-util-visit" import { Index } from "@/registry/__index__" import { getActiveStyle } from "@/registry/_legacy-styles" interface UnistNode { type: string name?: string tagName?: string value?: string prop...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/themes.ts
apps/v4/lib/themes.ts
import { baseColors } from "@/registry/_legacy-base-colors" export const THEMES = baseColors .filter((theme) => !["slate", "stone", "gray", "zinc"].includes(theme.name)) .sort((a, b) => a.name.localeCompare(b.name))
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/categories.ts
apps/v4/lib/categories.ts
export const registryCategories = [ { name: "Sidebar", slug: "sidebar", hidden: false, }, { name: "Dashboard", slug: "dashboard", hidden: true, }, { name: "Authentication", slug: "authentication", hidden: true, }, { name: "Login", slug: "login", hidden: fals...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/source.ts
apps/v4/lib/source.ts
import { docs } from "@/.source" import { loader } from "fumadocs-core/source" export const source = loader({ baseUrl: "/docs", source: docs.toFumadocsSource(), })
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/colors.ts
apps/v4/lib/colors.ts
import { z } from "zod" import { colors } from "@/registry/_legacy-colors" const colorSchema = z.object({ name: z.string(), id: z.string(), scale: z.number(), className: z.string(), hex: z.string(), rgb: z.string(), hsl: z.string(), foreground: z.string(), oklch: z.string(), var: z.string(), }) c...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/registry.ts
apps/v4/lib/registry.ts
import { promises as fs } from "fs" import { tmpdir } from "os" import path from "path" import { registryItemSchema, type registryItemFileSchema } from "shadcn/schema" import { Project, ScriptKind } from "ts-morph" import { type z } from "zod" import { Index } from "@/registry/__index__" import { type Style } from "@/...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/blocks.ts
apps/v4/lib/blocks.ts
"use server" import { registryItemSchema } from "shadcn/schema" import { type z } from "zod" export async function getAllBlockIds( types: z.infer<typeof registryItemSchema>["type"][] = [ "registry:block", "registry:internal", ], categories: string[] = [] ): Promise<string[]> { const blocks = await get...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false
shadcn-ui/ui
https://github.com/shadcn-ui/ui/blob/ccafdaf7c6f6747a24f54e84436b42ec42f01779/apps/v4/lib/docs.ts
apps/v4/lib/docs.ts
export const PAGES_NEW = [ "/create", "/docs/components/button-group", "/docs/components/empty", "/docs/components/field", "/docs/components/input-group", "/docs/components/item", "/docs/components/kbd", "/docs/components/spinner", "/docs/components/native-select", ] export const PAGES_UPDATED = ["/d...
typescript
MIT
ccafdaf7c6f6747a24f54e84436b42ec42f01779
2026-01-04T15:25:31.746168Z
false