Function
ButtonGroupText
({
className,
asChild = false,
...props
}: React.ComponentProps<"div"> & {
asChild?: boolean
})
Source from the content-addressed store, hash-verified
| 38 | } |
| 39 | |
| 40 | function ButtonGroupText({ |
| 41 | className, |
| 42 | asChild = false, |
| 43 | ...props |
| 44 | }: React.ComponentProps<"div"> & { |
| 45 | asChild?: boolean |
| 46 | }) { |
| 47 | const Comp = asChild ? Slot : "div" |
| 48 | |
| 49 | return ( |
| 50 | <Comp |
| 51 | className={cn( |
| 52 | "bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", |
| 53 | className |
| 54 | )} |
| 55 | {...props} |
| 56 | /> |
| 57 | ) |
| 58 | } |
| 59 | |
| 60 | function ButtonGroupSeparator({ |
| 61 | className, |
Callers
nothing calls this directly
Tested by
no test coverage detected