Separator

Diviseur visuel entre les sections de contenu. Installez Separator depuis le registre VLLNT UI avec la CLI shadcn.

Signaler un bug

Diviseur visuel entre les sections de contenu. Fait partie de la famille core dans VLLNT UI, il est publie comme entree de registre lisible par machine — copiez la source directement dans votre application avec la CLI shadcn et possedez-la, sans dependance d'execution a une bibliotheque de composants.

Apercu

Basculez entre clair et sombre pour inspecter l'apercu Storybook integre.

Installation

Ajoutez Separator a votre projet avec la CLI shadcn. La source arrive dans votre code, prete a etre adaptee :

pnpm dlx shadcn@latest add https://ui.vllnt.ai/r/separator.json

Source

"use client"; import * as SeparatorPrimitive from "@radix-ui/react-separator"; import { cn } from "../../lib/utils"; const Separator = ({ className, decorative = true, orientation = "horizontal", ref, ...props }: React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> & { ref?: React.Ref<React.ComponentRef<typeof SeparatorPrimitive.Root>>; }) => ( <SeparatorPrimitive.Root className={cn( "shrink-0 bg-border", orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", className, )} decorative={decorative} orientation={orientation} ref={ref} {...props} /> ); Separator.displayName = SeparatorPrimitive.Root.displayName; export { Separator };

Stories

Explorez chaque variante et etat dans le Storybook interactif :

Apercu

Basculez entre clair et sombre pour inspecter l'apercu Storybook integre.

Dependances

  • @vllnt/ui@^0.3.0