accepts children
import RadioMenu from '@fuzdev/fuz_ui/RadioMenu.svelte'; options
type
T[]value
The selected option, compared by identity; bindable.
type
T bindable
onselect?
Called after a click selects an option.
type
(option: T) => voidoptional
snippet parameters
option Tlabel
The display text of an option - also the default title and key source.
type
(option: T) => stringsnippet parameters
option Ttitle?
The button title, defaulting to "select X" / "X is selected" from label.
type
(option: T, selected: boolean) => stringoptional
snippet parameters
option Tselected booleankey?
Keys the options list; defaults to the label.
type
(option: T) => unknownoptional default
(option: T): unknown => label(option)snippet parameters
option Tchildren?
Custom button content in place of the label text.
type
Snippet<[option: T, selected: boolean]>optional
snippet parameters
option Tselected booleanexternal types
OmitStrict<SvelteHTMLElements['menu'], 'title' | 'children' | 'onselect'>generics
RadioMenu<T>