@databricks/appkit 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +121 -1228
- package/NOTICE.md +1 -1
- package/bin/appkit.js +3 -0
- package/dist/analytics/analytics.d.ts.map +1 -1
- package/dist/analytics/analytics.js +17 -30
- package/dist/analytics/analytics.js.map +1 -1
- package/dist/app/index.d.ts +5 -1
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +38 -9
- package/dist/app/index.js.map +1 -1
- package/dist/appkit/package.js +1 -1
- package/dist/cache/index.js +3 -3
- package/dist/cache/index.js.map +1 -1
- package/dist/cli/commands/docs.js +47 -0
- package/dist/cli/commands/docs.js.map +1 -0
- package/dist/cli/commands/generate-types.js +38 -0
- package/dist/cli/commands/generate-types.js.map +1 -0
- package/dist/cli/commands/lint.js +104 -0
- package/dist/cli/commands/lint.js.map +1 -0
- package/dist/cli/commands/setup.js +121 -0
- package/dist/cli/commands/setup.js.map +1 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +24 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.js.map +1 -1
- package/dist/plugin/plugin.d.ts +1 -0
- package/dist/plugin/plugin.d.ts.map +1 -1
- package/dist/plugin/plugin.js +1 -0
- package/dist/plugin/plugin.js.map +1 -1
- package/dist/server/remote-tunnel/remote-tunnel-manager.js +9 -9
- package/dist/server/remote-tunnel/remote-tunnel-manager.js.map +1 -1
- package/dist/server/utils.js +6 -6
- package/dist/server/utils.js.map +1 -1
- package/dist/shared/src/execute.d.ts +1 -0
- package/dist/shared/src/execute.d.ts.map +1 -1
- package/dist/shared/src/plugin.d.ts +3 -0
- package/dist/shared/src/plugin.d.ts.map +1 -1
- package/dist/telemetry/types.d.ts +1 -0
- package/dist/telemetry/types.d.ts.map +1 -1
- package/dist/type-generator/index.js +1 -1
- package/dist/type-generator/index.js.map +1 -1
- package/dist/type-generator/query-registry.js +9 -1
- package/dist/type-generator/query-registry.js.map +1 -1
- package/docs/docs/api/appkit/Class.AppKitError/index.html +77 -0
- package/docs/docs/api/appkit/Class.AppKitError.md +154 -0
- package/docs/docs/api/appkit/Class.AuthenticationError/index.html +110 -0
- package/docs/docs/api/appkit/Class.AuthenticationError.md +236 -0
- package/docs/docs/api/appkit/Class.ConfigurationError/index.html +112 -0
- package/docs/docs/api/appkit/Class.ConfigurationError.md +243 -0
- package/docs/docs/api/appkit/Class.ConnectionError/index.html +120 -0
- package/docs/docs/api/appkit/Class.ConnectionError.md +265 -0
- package/docs/docs/api/appkit/Class.ExecutionError/index.html +116 -0
- package/docs/docs/api/appkit/Class.ExecutionError.md +250 -0
- package/docs/docs/api/appkit/Class.InitializationError/index.html +104 -0
- package/docs/docs/api/appkit/Class.InitializationError.md +222 -0
- package/docs/docs/api/appkit/Class.Plugin/index.html +149 -0
- package/docs/docs/api/appkit/Class.Plugin.md +392 -0
- package/docs/docs/api/appkit/Class.ServerError/index.html +108 -0
- package/docs/docs/api/appkit/Class.ServerError.md +229 -0
- package/docs/docs/api/appkit/Class.TunnelError/index.html +108 -0
- package/docs/docs/api/appkit/Class.TunnelError.md +231 -0
- package/docs/docs/api/appkit/Class.ValidationError/index.html +106 -0
- package/docs/docs/api/appkit/Class.ValidationError.md +225 -0
- package/docs/docs/api/appkit/Function.appKitTypesPlugin/index.html +24 -0
- package/docs/docs/api/appkit/Function.appKitTypesPlugin.md +20 -0
- package/docs/docs/api/appkit/Function.createApp/index.html +24 -0
- package/docs/docs/api/appkit/Function.createApp.md +31 -0
- package/docs/docs/api/appkit/Function.isSQLTypeMarker/index.html +25 -0
- package/docs/docs/api/appkit/Function.isSQLTypeMarker.md +32 -0
- package/docs/docs/api/appkit/Interface.BasePluginConfig/index.html +28 -0
- package/docs/docs/api/appkit/Interface.BasePluginConfig.md +37 -0
- package/docs/docs/api/appkit/Interface.CacheConfig/index.html +63 -0
- package/docs/docs/api/appkit/Interface.CacheConfig.md +131 -0
- package/docs/docs/api/appkit/Interface.ITelemetry/index.html +73 -0
- package/docs/docs/api/appkit/Interface.ITelemetry.md +144 -0
- package/docs/docs/api/appkit/Interface.StreamExecutionSettings/index.html +26 -0
- package/docs/docs/api/appkit/Interface.StreamExecutionSettings.md +30 -0
- package/docs/docs/api/appkit/Interface.TelemetryConfig/index.html +32 -0
- package/docs/docs/api/appkit/Interface.TelemetryConfig.md +48 -0
- package/docs/docs/api/appkit/TypeAlias.IAppRouter/index.html +18 -0
- package/docs/docs/api/appkit/TypeAlias.IAppRouter.md +8 -0
- package/docs/docs/api/appkit/Variable.sql/index.html +98 -0
- package/docs/docs/api/appkit/Variable.sql.md +260 -0
- package/docs/docs/api/appkit/index.html +28 -0
- package/docs/docs/api/appkit-ui/data/AreaChart/index.html +29 -0
- package/docs/docs/api/appkit-ui/data/AreaChart.md +79 -0
- package/docs/docs/api/appkit-ui/data/BarChart/index.html +29 -0
- package/docs/docs/api/appkit-ui/data/BarChart.md +74 -0
- package/docs/docs/api/appkit-ui/data/DataTable/index.html +36 -0
- package/docs/docs/api/appkit-ui/data/DataTable.md +69 -0
- package/docs/docs/api/appkit-ui/data/DonutChart/index.html +29 -0
- package/docs/docs/api/appkit-ui/data/DonutChart.md +72 -0
- package/docs/docs/api/appkit-ui/data/HeatmapChart/index.html +35 -0
- package/docs/docs/api/appkit-ui/data/HeatmapChart.md +91 -0
- package/docs/docs/api/appkit-ui/data/LineChart/index.html +29 -0
- package/docs/docs/api/appkit-ui/data/LineChart.md +77 -0
- package/docs/docs/api/appkit-ui/data/PieChart/index.html +29 -0
- package/docs/docs/api/appkit-ui/data/PieChart.md +72 -0
- package/docs/docs/api/appkit-ui/data/RadarChart/index.html +29 -0
- package/docs/docs/api/appkit-ui/data/RadarChart.md +74 -0
- package/docs/docs/api/appkit-ui/data/ScatterChart/index.html +29 -0
- package/docs/docs/api/appkit-ui/data/ScatterChart.md +76 -0
- package/docs/docs/api/appkit-ui/index.html +23 -0
- package/docs/docs/api/appkit-ui/styling/index.html +74 -0
- package/docs/docs/api/appkit-ui/styling.md +81 -0
- package/docs/docs/api/appkit-ui/ui/Accordion/index.html +48 -0
- package/docs/docs/api/appkit-ui/ui/Accordion.md +139 -0
- package/docs/docs/api/appkit-ui/ui/Alert/index.html +41 -0
- package/docs/docs/api/appkit-ui/ui/Alert.md +89 -0
- package/docs/docs/api/appkit-ui/ui/AlertDialog/index.html +97 -0
- package/docs/docs/api/appkit-ui/ui/AlertDialog.md +282 -0
- package/docs/docs/api/appkit-ui/ui/AspectRatio/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/AspectRatio.md +46 -0
- package/docs/docs/api/appkit-ui/ui/Avatar/index.html +41 -0
- package/docs/docs/api/appkit-ui/ui/Avatar.md +90 -0
- package/docs/docs/api/appkit-ui/ui/Badge/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Badge.md +38 -0
- package/docs/docs/api/appkit-ui/ui/Breadcrumb/index.html +69 -0
- package/docs/docs/api/appkit-ui/ui/Breadcrumb.md +193 -0
- package/docs/docs/api/appkit-ui/ui/Button/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Button.md +39 -0
- package/docs/docs/api/appkit-ui/ui/ButtonGroup/index.html +38 -0
- package/docs/docs/api/appkit-ui/ui/ButtonGroup.md +68 -0
- package/docs/docs/api/appkit-ui/ui/Calendar/index.html +34 -0
- package/docs/docs/api/appkit-ui/ui/Calendar.md +154 -0
- package/docs/docs/api/appkit-ui/ui/Card/index.html +69 -0
- package/docs/docs/api/appkit-ui/ui/Card.md +222 -0
- package/docs/docs/api/appkit-ui/ui/Carousel/index.html +55 -0
- package/docs/docs/api/appkit-ui/ui/Carousel.md +152 -0
- package/docs/docs/api/appkit-ui/ui/ChartContainer/index.html +58 -0
- package/docs/docs/api/appkit-ui/ui/ChartContainer.md +343 -0
- package/docs/docs/api/appkit-ui/ui/Checkbox/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Checkbox.md +53 -0
- package/docs/docs/api/appkit-ui/ui/Collapsible/index.html +41 -0
- package/docs/docs/api/appkit-ui/ui/Collapsible.md +125 -0
- package/docs/docs/api/appkit-ui/ui/Command/index.html +83 -0
- package/docs/docs/api/appkit-ui/ui/Command.md +287 -0
- package/docs/docs/api/appkit-ui/ui/ContextMenu/index.html +111 -0
- package/docs/docs/api/appkit-ui/ui/ContextMenu.md +419 -0
- package/docs/docs/api/appkit-ui/ui/Dialog/index.html +90 -0
- package/docs/docs/api/appkit-ui/ui/Dialog.md +285 -0
- package/docs/docs/api/appkit-ui/ui/Drawer/index.html +90 -0
- package/docs/docs/api/appkit-ui/ui/Drawer.md +387 -0
- package/docs/docs/api/appkit-ui/ui/DropdownMenu/index.html +111 -0
- package/docs/docs/api/appkit-ui/ui/DropdownMenu.md +478 -0
- package/docs/docs/api/appkit-ui/ui/Empty/index.html +54 -0
- package/docs/docs/api/appkit-ui/ui/Empty.md +109 -0
- package/docs/docs/api/appkit-ui/ui/Field/index.html +87 -0
- package/docs/docs/api/appkit-ui/ui/Field.md +201 -0
- package/docs/docs/api/appkit-ui/ui/FormControl/index.html +59 -0
- package/docs/docs/api/appkit-ui/ui/FormControl.md +128 -0
- package/docs/docs/api/appkit-ui/ui/HoverCard/index.html +39 -0
- package/docs/docs/api/appkit-ui/ui/HoverCard.md +131 -0
- package/docs/docs/api/appkit-ui/ui/Input/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Input.md +35 -0
- package/docs/docs/api/appkit-ui/ui/InputGroup/index.html +59 -0
- package/docs/docs/api/appkit-ui/ui/InputGroup.md +123 -0
- package/docs/docs/api/appkit-ui/ui/InputOTP/index.html +48 -0
- package/docs/docs/api/appkit-ui/ui/InputOTP.md +124 -0
- package/docs/docs/api/appkit-ui/ui/Item/index.html +78 -0
- package/docs/docs/api/appkit-ui/ui/Item.md +185 -0
- package/docs/docs/api/appkit-ui/ui/Kbd/index.html +30 -0
- package/docs/docs/api/appkit-ui/ui/Kbd.md +39 -0
- package/docs/docs/api/appkit-ui/ui/Label/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Label.md +44 -0
- package/docs/docs/api/appkit-ui/ui/Menubar/index.html +117 -0
- package/docs/docs/api/appkit-ui/ui/Menubar.md +484 -0
- package/docs/docs/api/appkit-ui/ui/NavigationMenu/index.html +76 -0
- package/docs/docs/api/appkit-ui/ui/NavigationMenu.md +338 -0
- package/docs/docs/api/appkit-ui/ui/Pagination/index.html +69 -0
- package/docs/docs/api/appkit-ui/ui/Pagination.md +191 -0
- package/docs/docs/api/appkit-ui/ui/Popover/index.html +45 -0
- package/docs/docs/api/appkit-ui/ui/Popover.md +173 -0
- package/docs/docs/api/appkit-ui/ui/Progress/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Progress.md +51 -0
- package/docs/docs/api/appkit-ui/ui/RadioGroup/index.html +33 -0
- package/docs/docs/api/appkit-ui/ui/RadioGroup.md +83 -0
- package/docs/docs/api/appkit-ui/ui/ResizableHandle/index.html +41 -0
- package/docs/docs/api/appkit-ui/ui/ResizableHandle.md +136 -0
- package/docs/docs/api/appkit-ui/ui/ScrollArea/index.html +34 -0
- package/docs/docs/api/appkit-ui/ui/ScrollArea.md +83 -0
- package/docs/docs/api/appkit-ui/ui/Select/index.html +82 -0
- package/docs/docs/api/appkit-ui/ui/Select.md +267 -0
- package/docs/docs/api/appkit-ui/ui/Separator/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Separator.md +56 -0
- package/docs/docs/api/appkit-ui/ui/Sheet/index.html +76 -0
- package/docs/docs/api/appkit-ui/ui/Sheet.md +236 -0
- package/docs/docs/api/appkit-ui/ui/Sidebar/index.html +183 -0
- package/docs/docs/api/appkit-ui/ui/Sidebar.md +490 -0
- package/docs/docs/api/appkit-ui/ui/Skeleton/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Skeleton.md +43 -0
- package/docs/docs/api/appkit-ui/ui/Slider/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Slider.md +61 -0
- package/docs/docs/api/appkit-ui/ui/Spinner/index.html +24 -0
- package/docs/docs/api/appkit-ui/ui/Spinner.md +22 -0
- package/docs/docs/api/appkit-ui/ui/Switch/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Switch.md +46 -0
- package/docs/docs/api/appkit-ui/ui/Table/index.html +69 -0
- package/docs/docs/api/appkit-ui/ui/Table.md +236 -0
- package/docs/docs/api/appkit-ui/ui/Tabs/index.html +48 -0
- package/docs/docs/api/appkit-ui/ui/Tabs.md +177 -0
- package/docs/docs/api/appkit-ui/ui/Textarea/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Textarea.md +35 -0
- package/docs/docs/api/appkit-ui/ui/Toaster/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Toaster.md +75 -0
- package/docs/docs/api/appkit-ui/ui/Toggle/index.html +27 -0
- package/docs/docs/api/appkit-ui/ui/Toggle.md +48 -0
- package/docs/docs/api/appkit-ui/ui/ToggleGroup/index.html +33 -0
- package/docs/docs/api/appkit-ui/ui/ToggleGroup.md +88 -0
- package/docs/docs/api/appkit-ui/ui/Tooltip/index.html +46 -0
- package/docs/docs/api/appkit-ui/ui/Tooltip.md +134 -0
- package/docs/docs/api/appkit-ui.md +15 -0
- package/docs/docs/api/appkit.md +48 -0
- package/docs/docs/api/index.html +28 -0
- package/docs/docs/api.md +24 -0
- package/docs/docs/app-management/index.html +106 -0
- package/docs/docs/app-management.md +171 -0
- package/docs/docs/architecture/index.html +71 -0
- package/docs/docs/architecture.md +69 -0
- package/docs/docs/category/development/index.html +16 -0
- package/docs/docs/category/development.md +3 -0
- package/docs/docs/configuration/index.html +66 -0
- package/docs/docs/configuration.md +150 -0
- package/docs/docs/core-principles/index.html +38 -0
- package/docs/docs/core-principles.md +31 -0
- package/docs/docs/development/index.html +34 -0
- package/docs/docs/development/llm-guide/index.html +74 -0
- package/docs/docs/development/llm-guide.md +74 -0
- package/docs/docs/development/local-development/index.html +27 -0
- package/docs/docs/development/local-development.md +20 -0
- package/docs/docs/development/project-setup/index.html +69 -0
- package/docs/docs/development/project-setup.md +246 -0
- package/docs/docs/development/remote-bridge/index.html +76 -0
- package/docs/docs/development/remote-bridge.md +80 -0
- package/docs/docs/development/type-generation/index.html +65 -0
- package/docs/docs/development/type-generation.md +110 -0
- package/docs/docs/development.md +21 -0
- package/docs/docs/index.html +58 -0
- package/docs/docs/plugins/index.html +151 -0
- package/docs/docs/plugins.md +313 -0
- package/docs/docs.md +64 -0
- package/llms.txt +121 -1228
- package/package.json +11 -11
- package/scripts/postinstall.js +1 -1
- package/AGENTS.md +0 -1231
- package/bin/appkit-lint.js +0 -129
- package/bin/generate-types.js +0 -27
- package/bin/setup-claude.js +0 -190
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
# Command
|
|
2
|
+
|
|
3
|
+
Command palette for keyboard-driven navigation and actions
|
|
4
|
+
|
|
5
|
+
## Example[](#example "Direct link to Example")
|
|
6
|
+
|
|
7
|
+
<!-- -->
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import {
|
|
11
|
+
Calculator,
|
|
12
|
+
Calendar,
|
|
13
|
+
CreditCard,
|
|
14
|
+
Settings,
|
|
15
|
+
Smile,
|
|
16
|
+
User,
|
|
17
|
+
} from "lucide-react"
|
|
18
|
+
|
|
19
|
+
import {
|
|
20
|
+
Command,
|
|
21
|
+
CommandEmpty,
|
|
22
|
+
CommandGroup,
|
|
23
|
+
CommandInput,
|
|
24
|
+
CommandItem,
|
|
25
|
+
CommandList,
|
|
26
|
+
CommandSeparator,
|
|
27
|
+
CommandShortcut,
|
|
28
|
+
} from "@databricks/appkit-ui/react"
|
|
29
|
+
|
|
30
|
+
export default function CommandExample() {
|
|
31
|
+
return (
|
|
32
|
+
<Command className="rounded-lg border shadow-md md:min-w-[450px]">
|
|
33
|
+
<CommandInput placeholder="Type a command or search..." />
|
|
34
|
+
<CommandList>
|
|
35
|
+
<CommandEmpty>No results found.</CommandEmpty>
|
|
36
|
+
<CommandGroup heading="Suggestions">
|
|
37
|
+
<CommandItem>
|
|
38
|
+
<Calendar />
|
|
39
|
+
<span>Calendar</span>
|
|
40
|
+
</CommandItem>
|
|
41
|
+
<CommandItem>
|
|
42
|
+
<Smile />
|
|
43
|
+
<span>Search Emoji</span>
|
|
44
|
+
</CommandItem>
|
|
45
|
+
<CommandItem disabled>
|
|
46
|
+
<Calculator />
|
|
47
|
+
<span>Calculator</span>
|
|
48
|
+
</CommandItem>
|
|
49
|
+
</CommandGroup>
|
|
50
|
+
<CommandSeparator />
|
|
51
|
+
<CommandGroup heading="Settings">
|
|
52
|
+
<CommandItem>
|
|
53
|
+
<User />
|
|
54
|
+
<span>Profile</span>
|
|
55
|
+
<CommandShortcut>⌘P</CommandShortcut>
|
|
56
|
+
</CommandItem>
|
|
57
|
+
<CommandItem>
|
|
58
|
+
<CreditCard />
|
|
59
|
+
<span>Billing</span>
|
|
60
|
+
<CommandShortcut>⌘B</CommandShortcut>
|
|
61
|
+
</CommandItem>
|
|
62
|
+
<CommandItem>
|
|
63
|
+
<Settings />
|
|
64
|
+
<span>Settings</span>
|
|
65
|
+
<CommandShortcut>⌘S</CommandShortcut>
|
|
66
|
+
</CommandItem>
|
|
67
|
+
</CommandGroup>
|
|
68
|
+
</CommandList>
|
|
69
|
+
</Command>
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Command[](#command-1 "Direct link to Command")
|
|
76
|
+
|
|
77
|
+
Command palette for keyboard-driven navigation and actions
|
|
78
|
+
|
|
79
|
+
**Source:** [`packages/appkit-ui/src/react/ui/command.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/ui/command.tsx)
|
|
80
|
+
|
|
81
|
+
### Props[](#props "Direct link to Props")
|
|
82
|
+
|
|
83
|
+
| Prop | Type | Required | Default | Description |
|
|
84
|
+
| ------------------------- | --------------------------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
85
|
+
| `asChild` | `boolean` | | - | - |
|
|
86
|
+
| `label` | `string` | | - | Accessible label for this command menu. Not shown visibly. |
|
|
87
|
+
| `shouldFilter` | `boolean` | | - | Optionally set to `false` to turn off the automatic filtering and sorting. If `false`, you must conditionally render valid items based on the search query yourself. |
|
|
88
|
+
| `filter` | `CommandFilter` | | - | Custom filter function for whether each command menu item should matches the given search query. It should return a number between 0 and 1, with 1 being the best match and 0 being hidden entirely. By default, uses the `command-score` library. |
|
|
89
|
+
| `value` | `string` | | - | Optional controlled state of the selected command menu item. |
|
|
90
|
+
| `onValueChange` | `((value: string) => void)` | | - | Event handler called when the selected item of the menu changes. |
|
|
91
|
+
| `loop` | `boolean` | | - | Optionally set to `true` to turn on looping around when using the arrow keys. |
|
|
92
|
+
| `disablePointerSelection` | `boolean` | | - | Optionally set to `true` to disable selection via pointer events. |
|
|
93
|
+
| `vimBindings` | `boolean` | | - | Set to `false` to disable ctrl+n/j/p/k shortcuts. Defaults to `true`. |
|
|
94
|
+
|
|
95
|
+
### Usage[](#usage "Direct link to Usage")
|
|
96
|
+
|
|
97
|
+
```tsx
|
|
98
|
+
import { Command } from '@databricks/appkit-ui';
|
|
99
|
+
|
|
100
|
+
<Command /* props */ />
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## CommandDialog[](#commanddialog "Direct link to CommandDialog")
|
|
105
|
+
|
|
106
|
+
Dialog wrapper for the command palette
|
|
107
|
+
|
|
108
|
+
**Source:** [`packages/appkit-ui/src/react/ui/command.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/ui/command.tsx)
|
|
109
|
+
|
|
110
|
+
### Props[](#props-1 "Direct link to Props")
|
|
111
|
+
|
|
112
|
+
| Prop | Type | Required | Default | Description |
|
|
113
|
+
| ----------------- | --------------------------- | -------- | -------------------------------- | ----------- |
|
|
114
|
+
| `open` | `boolean` | | - | - |
|
|
115
|
+
| `defaultOpen` | `boolean` | | - | - |
|
|
116
|
+
| `onOpenChange` | `((open: boolean) => void)` | | - | - |
|
|
117
|
+
| `modal` | `boolean` | | - | - |
|
|
118
|
+
| `title` | `string` | | `Command Palette` | - |
|
|
119
|
+
| `description` | `string` | | `Search for a command to run...` | - |
|
|
120
|
+
| `className` | `string` | | - | - |
|
|
121
|
+
| `showCloseButton` | `boolean` | | `true` | - |
|
|
122
|
+
|
|
123
|
+
### Usage[](#usage-1 "Direct link to Usage")
|
|
124
|
+
|
|
125
|
+
```tsx
|
|
126
|
+
import { CommandDialog } from '@databricks/appkit-ui';
|
|
127
|
+
|
|
128
|
+
<CommandDialog /* props */ />
|
|
129
|
+
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## CommandEmpty[](#commandempty "Direct link to CommandEmpty")
|
|
133
|
+
|
|
134
|
+
Empty state displayed when no commands match the search
|
|
135
|
+
|
|
136
|
+
**Source:** [`packages/appkit-ui/src/react/ui/command.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/ui/command.tsx)
|
|
137
|
+
|
|
138
|
+
### Props[](#props-2 "Direct link to Props")
|
|
139
|
+
|
|
140
|
+
| Prop | Type | Required | Default | Description |
|
|
141
|
+
| --------- | --------- | -------- | ------- | ----------- |
|
|
142
|
+
| `asChild` | `boolean` | | - | - |
|
|
143
|
+
|
|
144
|
+
### Usage[](#usage-2 "Direct link to Usage")
|
|
145
|
+
|
|
146
|
+
```tsx
|
|
147
|
+
import { CommandEmpty } from '@databricks/appkit-ui';
|
|
148
|
+
|
|
149
|
+
<CommandEmpty /* props */ />
|
|
150
|
+
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## CommandGroup[](#commandgroup "Direct link to CommandGroup")
|
|
154
|
+
|
|
155
|
+
Group of related command items with an optional heading
|
|
156
|
+
|
|
157
|
+
**Source:** [`packages/appkit-ui/src/react/ui/command.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/ui/command.tsx)
|
|
158
|
+
|
|
159
|
+
### Props[](#props-3 "Direct link to Props")
|
|
160
|
+
|
|
161
|
+
| Prop | Type | Required | Default | Description |
|
|
162
|
+
| ------------ | ----------- | -------- | ------- | ---------------------------------------------------------------------------------- |
|
|
163
|
+
| `asChild` | `boolean` | | - | - |
|
|
164
|
+
| `heading` | `ReactNode` | | - | Optional heading to render for this group. |
|
|
165
|
+
| `value` | `string` | | - | If no heading is provided, you must provide a value that is unique for this group. |
|
|
166
|
+
| `forceMount` | `boolean` | | - | Whether this group is forcibly rendered regardless of filtering. |
|
|
167
|
+
|
|
168
|
+
### Usage[](#usage-3 "Direct link to Usage")
|
|
169
|
+
|
|
170
|
+
```tsx
|
|
171
|
+
import { CommandGroup } from '@databricks/appkit-ui';
|
|
172
|
+
|
|
173
|
+
<CommandGroup /* props */ />
|
|
174
|
+
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
## CommandInput[](#commandinput "Direct link to CommandInput")
|
|
178
|
+
|
|
179
|
+
Search input field for filtering command items
|
|
180
|
+
|
|
181
|
+
**Source:** [`packages/appkit-ui/src/react/ui/command.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/ui/command.tsx)
|
|
182
|
+
|
|
183
|
+
### Props[](#props-4 "Direct link to Props")
|
|
184
|
+
|
|
185
|
+
| Prop | Type | Required | Default | Description |
|
|
186
|
+
| --------------- | ---------------------------- | -------- | ------- | ------------------------------------------------------------ |
|
|
187
|
+
| `asChild` | `boolean` | | - | - |
|
|
188
|
+
| `value` | `string` | | - | Optional controlled state for the value of the search input. |
|
|
189
|
+
| `onValueChange` | `((search: string) => void)` | | - | Event handler called when the search value changes. |
|
|
190
|
+
|
|
191
|
+
### Usage[](#usage-4 "Direct link to Usage")
|
|
192
|
+
|
|
193
|
+
```tsx
|
|
194
|
+
import { CommandInput } from '@databricks/appkit-ui';
|
|
195
|
+
|
|
196
|
+
<CommandInput /* props */ />
|
|
197
|
+
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## CommandItem[](#commanditem "Direct link to CommandItem")
|
|
201
|
+
|
|
202
|
+
Individual selectable command item
|
|
203
|
+
|
|
204
|
+
**Source:** [`packages/appkit-ui/src/react/ui/command.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/ui/command.tsx)
|
|
205
|
+
|
|
206
|
+
### Props[](#props-5 "Direct link to Props")
|
|
207
|
+
|
|
208
|
+
| Prop | Type | Required | Default | Description |
|
|
209
|
+
| ------------ | --------------------------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
210
|
+
| `asChild` | `boolean` | | - | - |
|
|
211
|
+
| `disabled` | `boolean` | | - | Whether this item is currently disabled. |
|
|
212
|
+
| `onSelect` | `((value: string) => void)` | | - | Event handler for when this item is selected, either via click or keyboard selection. |
|
|
213
|
+
| `value` | `string` | | - | A unique value for this item. If no value is provided, it will be inferred from `children` or the rendered `textContent`. If your `textContent` changes between renders, you *must* provide a stable, unique `value`. |
|
|
214
|
+
| `keywords` | `string[]` | | - | Optional keywords to match against when filtering. |
|
|
215
|
+
| `forceMount` | `boolean` | | - | Whether this item is forcibly rendered regardless of filtering. |
|
|
216
|
+
|
|
217
|
+
### Usage[](#usage-5 "Direct link to Usage")
|
|
218
|
+
|
|
219
|
+
```tsx
|
|
220
|
+
import { CommandItem } from '@databricks/appkit-ui';
|
|
221
|
+
|
|
222
|
+
<CommandItem /* props */ />
|
|
223
|
+
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
## CommandList[](#commandlist "Direct link to CommandList")
|
|
227
|
+
|
|
228
|
+
Scrollable list container for command items
|
|
229
|
+
|
|
230
|
+
**Source:** [`packages/appkit-ui/src/react/ui/command.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/ui/command.tsx)
|
|
231
|
+
|
|
232
|
+
### Props[](#props-6 "Direct link to Props")
|
|
233
|
+
|
|
234
|
+
| Prop | Type | Required | Default | Description |
|
|
235
|
+
| --------- | --------- | -------- | ------- | ----------------------------------------------------------------- |
|
|
236
|
+
| `asChild` | `boolean` | | - | - |
|
|
237
|
+
| `label` | `string` | | - | Accessible label for this List of suggestions. Not shown visibly. |
|
|
238
|
+
|
|
239
|
+
### Usage[](#usage-6 "Direct link to Usage")
|
|
240
|
+
|
|
241
|
+
```tsx
|
|
242
|
+
import { CommandList } from '@databricks/appkit-ui';
|
|
243
|
+
|
|
244
|
+
<CommandList /* props */ />
|
|
245
|
+
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
## CommandSeparator[](#commandseparator "Direct link to CommandSeparator")
|
|
249
|
+
|
|
250
|
+
Visual separator between command groups
|
|
251
|
+
|
|
252
|
+
**Source:** [`packages/appkit-ui/src/react/ui/command.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/ui/command.tsx)
|
|
253
|
+
|
|
254
|
+
### Props[](#props-7 "Direct link to Props")
|
|
255
|
+
|
|
256
|
+
| Prop | Type | Required | Default | Description |
|
|
257
|
+
| -------------- | --------- | -------- | ------- | -------------------------------------------------------------------------------------------- |
|
|
258
|
+
| `asChild` | `boolean` | | - | - |
|
|
259
|
+
| `alwaysRender` | `boolean` | | - | Whether this separator should always be rendered. Useful if you disable automatic filtering. |
|
|
260
|
+
|
|
261
|
+
### Usage[](#usage-7 "Direct link to Usage")
|
|
262
|
+
|
|
263
|
+
```tsx
|
|
264
|
+
import { CommandSeparator } from '@databricks/appkit-ui';
|
|
265
|
+
|
|
266
|
+
<CommandSeparator /* props */ />
|
|
267
|
+
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
## CommandShortcut[](#commandshortcut "Direct link to CommandShortcut")
|
|
271
|
+
|
|
272
|
+
Keyboard shortcut indicator displayed next to command items
|
|
273
|
+
|
|
274
|
+
**Source:** [`packages/appkit-ui/src/react/ui/command.tsx`](https://github.com/databricks/appkit/blob/main/packages/appkit-ui/src/react/ui/command.tsx)
|
|
275
|
+
|
|
276
|
+
### Props[](#props-8 "Direct link to Props")
|
|
277
|
+
|
|
278
|
+
This component extends standard HTML element attributes.
|
|
279
|
+
|
|
280
|
+
### Usage[](#usage-8 "Direct link to Usage")
|
|
281
|
+
|
|
282
|
+
```tsx
|
|
283
|
+
import { CommandShortcut } from '@databricks/appkit-ui';
|
|
284
|
+
|
|
285
|
+
<CommandShortcut /* props */ />
|
|
286
|
+
|
|
287
|
+
```
|