BetaBeta pública — Consulta las notas de lanzamiento
Documentación

Menu

Action list triggered by a button.

Paquete
@solidiom/menu
Versión
0.0.1-next.0
Estado
stable

Generado a partir del código fuente público del paquete.

API

CheckboxItemcomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        CheckboxItem(props: MenuCheckboxItemProps): Element
                      

Propiedades

checked?
boolean — Whether the item is checked.
disabled?
boolean — Disabled state.
onCheckedChange?
(checked: boolean) => void — Called when checked state changes.
textValue?
string — Text for typeahead matching.

hijos: Element

Ver código fuente

Contentcomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        Content(props: MenuContentProps): Element
                      

Propiedades

class?
string
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties

hijos: Element

Ver código fuente

Itemcomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        Item(props: MenuItemProps): Element
                      

Propiedades

disabled?
boolean — Disabled state.
onSelect?
() => void — Called when the item is activated.
textValue?
string — Text for typeahead matching.

hijos: Element

Ver código fuente

Labelcomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        Label(props: MenuLabelProps): Element
                      

Propiedades

class?
string

hijos: Element

Ver código fuente

MenuCheckboxItemPropsinterfaz

Props for a menu checkbox item.

Propiedades

checked?
boolean — Whether the item is checked.
disabled?
boolean — Disabled state.
onCheckedChange?
(checked: boolean) => void — Called when checked state changes.
textValue?
string — Text for typeahead matching.

hijos: Element

Ver código fuente

MenuContentPropsinterfaz

Props for the menu content panel.

Propiedades

class?
string
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties

hijos: Element

Ver código fuente

MenuItemPropsinterfaz

Props for a menu item.

Propiedades

disabled?
boolean — Disabled state.
onSelect?
() => void — Called when the item is activated.
textValue?
string — Text for typeahead matching.

hijos: Element

Ver código fuente

MenuLabelPropsinterfaz

Props for a menu label (non-interactive group heading).

Propiedades

class?
string

hijos: Element

Ver código fuente

MenuRadioGroupPropsinterfaz

Props for a menu radio group.

Propiedades

onValueChange?
(value: string) => void — Called when the selected value changes.
value?
string — Current selected value.

hijos: Element

Ver código fuente

MenuRadioItemPropsinterfaz

Props for a menu radio item.

Propiedades

disabled?
boolean — Disabled state.
textValue?
string — Text for typeahead matching.
value
string — The value this item represents.

hijos: Element

Ver código fuente

MenuRootPropsinterfaz

Props for the menu root provider.

Propiedades

defaultOpen?
boolean — Default open state (uncontrolled).
onOpenChange?
(open: boolean, details: ChangeDetails<DisclosureReason>) => void — Called when open state change is requested.
open?
Accessor<boolean> — Controlled open state.

hijos: Element

Ver código fuente

MenuSeparatorPropsinterfaz

Props for a menu separator.

Propiedades

class?
string

Ver código fuente

MenuSubContentPropsinterfaz

Props for a sub-menu content panel.

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

MenuSubPropsinterfaz

Props for a sub-menu container.

hijos: Element

Ver código fuente

MenuSubTriggerPropsinterfaz

Props for a sub-menu trigger.

Propiedades

disabled?
boolean — Disabled state.
textValue?
string — Text for typeahead matching.

hijos: Element

Ver código fuente

MenuTriggerPropsinterfaz

Props for the menu trigger button.

Propiedades

contextMenu?
boolean — Enable context menu (right-click) activation.
ref?
(el: HTMLButtonElement) => void

hijos: Element

Ver código fuente

RadioGroupcomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        RadioGroup(props: MenuRadioGroupProps): Element
                      

Propiedades

onValueChange?
(value: string) => void — Called when the selected value changes.
value?
string — Current selected value.

hijos: Element

Ver código fuente

RadioItemcomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        RadioItem(props: MenuRadioItemProps): Element
                      

Propiedades

disabled?
boolean — Disabled state.
textValue?
string — Text for typeahead matching.
value
string — The value this item represents.

hijos: Element

Ver código fuente

Rootcomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        Root(props: MenuRootProps): Element
                      

Propiedades

defaultOpen?
boolean — Default open state (uncontrolled).
onOpenChange?
(open: boolean, details: ChangeDetails<DisclosureReason>) => void — Called when open state change is requested.
open?
Accessor<boolean> — Controlled open state.

hijos: Element

Ver código fuente

Separatorcomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        Separator(props: MenuSeparatorProps): Element
                      

Propiedades

class?
string

Ver código fuente

Subcomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        Sub(props: MenuSubProps): Element
                      

hijos: Element

Ver código fuente

SubContentcomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        SubContent(props: MenuSubContentProps): Element
                      

Propiedades

class?
string
style?
string | CSSProperties

hijos: Element

Ver código fuente

SubTriggercomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        SubTrigger(props: MenuSubTriggerProps): Element
                      

Propiedades

disabled?
boolean — Disabled state.
textValue?
string — Text for typeahead matching.

hijos: Element

Ver código fuente

Triggercomponente

@solidiom/menu — Headless menu primitive with keyboard navigation and dismissal. Parts: Root, Trigger, Content, Item, Separator, CheckboxItem, RadioGroup, RadioItem, Label, Sub, SubTrigger, SubContent.

                        Trigger(props: MenuTriggerProps): Element
                      

Propiedades

contextMenu?
boolean — Enable context menu (right-click) activation.
ref?
(el: HTMLButtonElement) => void

hijos: Element

Ver código fuente