Mobile-style action sheet component — a sliding bottom panel.
Requires the PhiaActionSheet JavaScript hook registered in app.js.
Provides five components:
action_sheet/1— root container with JS hook anchoraction_sheet_trigger/1— trigger wrapper elementaction_sheet_content/1— sliding bottom panelaction_sheet_item/1— individual action buttonaction_sheet_cancel/1— cancel button
Summary
Functions
Attributes
id(:string) (required)class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Attributes
id(:string) (required)title(:string) - Defaults tonil.description(:string) - Defaults tonil.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Attributes
on_click(:string) - Defaults tonil.href(:string) - Defaults tonil.variant(:atom) - Defaults to:default. Must be one of:default, or:destructive.disabled(:boolean) - Defaults tofalse.class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)icon
Attributes
action_sheet_id(:string) (required)class(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)