MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / ButtonGroupText

Function ButtonGroupText

src/components/ui/button-group.tsx:40–58  ·  view source on GitHub ↗
({
  className,
  asChild = false,
  ...props
}: React.ComponentProps<"div"> & {
  asChild?: boolean
})

Source from the content-addressed store, hash-verified

38}
39
40function 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
60function ButtonGroupSeparator({
61 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected