tabs
fulldev-ui/tabsFreeComponent
fulldev/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by fulldev/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://ui.full.dev/r/tabs.jsonSource
1---2import type { HTMLAttributes } from "astro/types"34import { cn } from "@/lib/utils"56type Props = HTMLAttributes<"div"> & {7 defaultValue?: string8 orientation?: "horizontal" | "vertical"9 activationMode?: "auto" | "manual"10}1112const {13 class: className,14 defaultValue,15 orientation = "horizontal",16 activationMode,17 ...props18} = Astro.props19---2021<div22 data-slot="tabs"23 data-default-value={defaultValue}24 data-orientation={orientation}25 data-activation-mode={activationMode}26 data-horizontal={orientation === "horizontal" ? "" : undefined}27 data-vertical={orientation === "vertical" ? "" : undefined}28 class={cn("group/tabs flex gap-2 data-horizontal:flex-col", className)}29 {...props}30>31 <slot />32</div>3334<script>35 import { create } from "@data-slot/tabs"3637 create()38</script>
What it pulls in
npm packages
Files it writes
More from fulldev/ui
All 144 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | fulldev/ui | Components | Free | 1 dep · 5 files | |
| alertalert | fulldev/ui | Components | Free | no deps · 5 files | |
| alert-dialogalert-dialog | fulldev/ui | Components | Free | 1 dep · 13 files | |
| avataravatar | fulldev/ui | Components | Free | no deps · 7 files | |
| badgebadge | fulldev/ui | Components | Free | no deps · 3 files | |
| bannerbanner | fulldev/ui | Components | Free | no deps · 3 files | |
| breadcrumbbreadcrumb | fulldev/ui | Components | Free | no deps · 8 files | |
| buttonbutton | fulldev/ui | Components | Free | no deps · 3 files |
