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

Function CommandDialog

astro-example/src/components/ui/command.tsx:103–115  ·  view source on GitHub ↗
(props: CommandDialogProps)

Source from the content-addressed store, hash-verified

101};
102
103export const CommandDialog = (props: CommandDialogProps) => {
104 const [local, rest] = splitProps(props, ["children"]);
105
106 return (
107 <Dialog {...rest}>
108 <DialogContent class="overflow-hidden p-0">
109 <Command class="[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:size-5">
110 {local.children}
111 </Command>
112 </DialogContent>
113 </Dialog>
114 );
115};
116
117export const CommandEmpty = (props: CommandEmptyProps) => {
118 const [local, rest] = splitProps(props, ["class"]);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected