[**@fungi.computer/caps**](../README.md) --- [@fungi.computer/caps](../README.md) / blocks/resource-select # blocks/resource-select ## Type Aliases ### ResourceOption ```ts type ResourceOption = object; ``` Caller-provided resource option data. #### Properties ##### disabled? ```ts optional disabled?: boolean; ``` ##### id ```ts id: string; ``` ##### label ```ts label: string; ``` ##### searchText? ```ts optional searchText?: string; ``` --- ### ResourceSelectProps ```ts type ResourceSelectProps = object; ``` Props accepted by ResourceSelect. #### Properties ##### onSelect ```ts onSelect: (option) => void; ``` Called after an option is selected. ###### Parameters | Parameter | Type | | --------- | ----------------------------------- | | `option` | [`ResourceOption`](#resourceoption) | ###### Returns `void` ##### options ```ts options: readonly ResourceOption[]; ``` ##### placeholder? ```ts optional placeholder?: string; ``` ##### triggerProps? ```ts optional triggerProps?: ButtonHTMLAttributes & DataAttributes; ``` Native caller metadata, including data-* attributes. ##### value? ```ts optional value?: string; ``` --- ### DataAttributes ```ts type DataAttributes = Record< `data-${string}`, boolean | number | string | undefined >; ``` Native `data-*` attribute map accepted alongside typed props. ## Variables ### ResourceSelect ```ts const ResourceSelect: ForwardRefExoticComponent< ResourceSelectProps & RefAttributes >; ``` A resource-selection block with caller-owned options and selected value.