blocks/resource-select
@fungi.computer/caps / blocks/resource-select
blocks/resource-select
Section titled “blocks/resource-select”Type Aliases
Section titled “Type Aliases”ResourceOption
Section titled “ResourceOption”ResourceOption =
object
Caller-provided resource option data.
Properties
Section titled “Properties”disabled?
Section titled “disabled?”
optionaldisabled?:boolean
id:
string
label:
string
searchText?
Section titled “searchText?”
optionalsearchText?:string
ResourceSelectProps
Section titled “ResourceSelectProps”ResourceSelectProps =
object
Props accepted by ResourceSelect.
Properties
Section titled “Properties”onSelect
Section titled “onSelect”onSelect: (
option) =>void
Called after an option is selected.
Parameters
Section titled “Parameters”option
Section titled “option”Returns
Section titled “Returns”void
options
Section titled “options”options: readonly
ResourceOption[]
placeholder?
Section titled “placeholder?”
optionalplaceholder?:string
triggerProps?
Section titled “triggerProps?”
optionaltriggerProps?:ButtonHTMLAttributes<HTMLButtonElement> > &DataAttributes
Native caller metadata, including data-* attributes.
value?
Section titled “value?”
optionalvalue?:string
Variables
Section titled “Variables”ResourceSelect
Section titled “ResourceSelect”
constResourceSelect:ForwardRefExoticComponent<ResourceSelectProps&RefAttributes<HTMLButtonElement>>>>
A resource-selection block with caller-owned options and selected value.