MCPcopy Create free account
hub / github.com/better-auth/examples / CommandGroup

Function CommandGroup

astro-example/src/components/ui/command.tsx:128–140  ·  view source on GitHub ↗
(props: CommandGroupProps)

Source from the content-addressed store, hash-verified

126};
127
128export const CommandGroup = (props: CommandGroupProps) => {
129 const [local, rest] = splitProps(props, ["class"]);
130
131 return (
132 <CommandPrimitive.Group
133 class={cn(
134 "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
135 local.class,
136 )}
137 {...rest}
138 />
139 );
140};
141
142export const CommandSeparator = (props: CommandEmptyProps) => {
143 const [local, rest] = splitProps(props, ["class"]);

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected