MCPcopy Index your code
hub / github.com/TheOrcDev/github-creature / ButtonGroupText

Function ButtonGroupText

components/ui/button-group.tsx:41–62  ·  view source on GitHub ↗
({
  className,
  render,
  ...props
}: useRender.ComponentProps<"div">)

Source from the content-addressed store, hash-verified

39}
40
41function ButtonGroupText({
42 className,
43 render,
44 ...props
45}: useRender.ComponentProps<"div">) {
46 return useRender({
47 defaultTagName: "div",
48 props: mergeProps<"div">(
49 {
50 className: cn(
51 "bg-muted gap-2 rounded-none border px-2.5 text-xs font-medium [&_svg:not([class*='size-'])]:size-4 flex items-center [&_svg]:pointer-events-none",
52 className
53 ),
54 },
55 props
56 ),
57 render,
58 state: {
59 slot: "button-group-text",
60 },
61 });
62}
63
64function ButtonGroupSeparator({
65 className,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected