EndpointSelector
API reference and demos for EndpointSelector.
Import
Section titled “Import”import { EndpointSelector } 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 |
|---|---|---|---|
allowCustomPort |
boolean |
false |
— |
allowCustomScheme |
boolean |
true |
— |
allowNamespaceSelection |
boolean |
false |
— |
className |
string |
— | — |
defaultMode |
enum |
— | — |
defaults |
EndpointSelectorDefaults |
— | — |
loadNamespaces |
(…) => Promise<string[]> |
— | — |
loadWorkloads* |
(…) => … |
— | — |
modeKinds |
Partial<Record<EndpointWorkloadMode, WorkloadKind[]>> |
— | — |
modes* |
EndpointMode[] |
— | — |
namespace |
string |
— | — |
onChange* |
(…) => void |
— | — |
onNamespaceChange |
(…) => … |
— | — |
preferredPorts |
readonly number[] |
[80, 443, 8080] as const |
— |
schemes |
string[] |
— | — |
showIngressPort |
boolean |
false |
— |
showPath |
boolean |
false |
— |
showScheme |
boolean |
false |
— |
urlSelector |
EndpointUrlSelectorProps |
— | — |
value* |
EndpointSelectorValue | undefined |
— | — |