button-group
shadcn-vue/button-groupFreeComponent
shadcn-vue publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn-vue on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://shadcn-vue.com/r/styles/new-york/button-group.jsonSource
1<script setup lang="ts">2import type { HTMLAttributes } from "vue"3import type { ButtonGroupVariants } from "."4import { cn } from "@/lib/utils"5import { buttonGroupVariants } from "."67const props = defineProps<{8 class?: HTMLAttributes["class"]9 orientation?: ButtonGroupVariants["orientation"]10}>()11</script>1213<template>14 <div15 role="group"16 data-slot="button-group"17 :data-orientation="props.orientation"18 :class="cn(buttonGroupVariants({ orientation: props.orientation }), props.class)"19 >20 <slot />21 </div>22</template>
What it pulls in
npm packages
Other registry items
Files it writes
More from shadcn-vue
All 65 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn-vue | Components | Free | 2 deps · 5 files | |
| alertalert | shadcn-vue | Components | Free | no deps · 4 files | |
| alert-dialogalert-dialog | shadcn-vue | Components | Free | 2 deps · 10 files | |
| aspect-ratioaspect-ratio | shadcn-vue | Components | Free | 1 dep · 2 files | |
| attachmentattachment | shadcn-vue | Components | Free | 1 dep · 10 files | |
| avataravatar | shadcn-vue | Components | Free | 2 deps · 4 files | |
| badgebadge | shadcn-vue | Components | Free | 2 deps · 2 files | |
| breadcrumbbreadcrumb | shadcn-vue | Components | Free | 1 dep · 8 files |
