NamespacePicker
API reference and demos for NamespacePicker.
Import
Section titled “Import”import { NamespacePicker } from "@flanksource/clicky-ui/components";The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
className |
string |
— | — |
loadNamespaces* |
(…) => Promise<string[]> |
— | Async getter the component calls once to load namespace names. |
onChange* |
(…) => void |
— | — |
placeholder |
string |
Select namespace… |
— |
strict |
boolean |
false |
When true, a non-empty value absent from the loaded set (once loading settles) is flagged invalid. The value is still shown; freeform entry is marked, not rejected. |
value* |
string |
— | Controlled selected namespace (or "" when cleared). |