HEEx function components for all Voidable web components.
Each function component renders the corresponding <void-*> custom element tag.
Interactive components include phx-hook="VoidEvent" and data-void-events
attributes to bridge CustomEvents to LiveView's pushEvent.
Summary
Functions
Renders a <void-accordion> container.
Renders a <void-accordion-item> collapsible section.
Renders a <void-alert> message.
Renders a <void-avatar> user avatar.
Renders a <void-badge> status badge.
Renders a <void-banner> announcement.
Renders a <void-breadcrumbs> navigation trail.
Renders a <void-button> element.
Renders a <void-calendar> date picker grid.
Renders a <void-card> container.
Renders a <void-carousel> image/content slider.
Renders a <void-carousel-slide> inside a carousel.
Renders a <void-checkbox> toggle.
Renders a <void-checkbox-group> container.
Renders a <void-combobox> searchable dropdown.
Renders a <void-compose-input> chat-style input.
Renders a <void-date-picker> input with calendar dropdown.
Renders a <void-dialog> modal.
Renders a <void-divider> separator.
Renders a <void-drawer> slide-out panel.
Renders a <void-dropdown-menu> dropdown.
Renders a <void-dropdown-menu-item> inside a dropdown menu.
Renders a <void-error-fallback> error display.
Renders a <void-field> form field wrapper.
Renders a <void-file-upload> drop zone.
Renders a <void-hamburger> menu toggle.
Renders a <void-indicator> badge/notification dot.
Renders a <void-input> text field.
Renders a <void-list> container.
Renders a <void-list-item> element.
Renders a <void-menu> command menu.
Renders a <void-menu-group> label inside a menu.
Renders a <void-menu-item> inside a menu.
Renders a <void-multiselect> multi-value dropdown.
Renders a <void-nav-bar> navigation bar.
Renders a <void-number-input> numeric stepper.
Renders a <void-option> inside a multiselect or combobox.
Renders a <void-pagination> page navigator.
Renders a <void-panel> container.
Renders a <void-popover> floating panel.
Renders a <void-progress> bar.
Renders a <void-radio> button.
Renders a <void-radio-group> container.
Renders a <void-scroll-area> scrollable container.
Renders a <void-segmented-control> selector.
Renders a <void-segmented-control-item> inside a segmented control.
Renders a <void-select> dropdown.
Renders a <void-sidebar> navigation sidebar.
Renders a <void-skeleton> placeholder.
Renders a <void-slider> range input.
Renders a <void-spinner> loading indicator.
Renders a <void-stat> metric display.
Renders a <void-status-dot> indicator.
Renders a <void-stepper> progress indicator.
Renders a <void-switch> toggle.
Renders a <void-tab-panel> inside tabs.
Renders a <void-table> wrapper.
Renders a <void-tabs> tab container.
Renders a <void-tag> label.
Renders a <void-textarea> multi-line text field.
Renders a <void-toast> notification.
Renders a <void-toast-container> positioning wrapper.
Renders a <void-toggle> button.
Renders a <void-toggle-group> button group.
Renders a <void-tooltip> hover tip.
Functions
Renders a <void-accordion> container.
Attributes
multiple(:boolean) - Defaults tofalse.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-accordion-item> collapsible section.
Attributes
id(:string) - Defaults tonil.heading(:string) - Defaults tonil.open(:boolean) - Defaults tofalse.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-alert> message.
Attributes
id(:string) - Defaults tonil.color(:string) - Defaults tonil.dismissible(:boolean) - Defaults tofalse.variant(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-avatar> user avatar.
Attributes
src(:string) - Defaults tonil.alt(:string) - Defaults tonil.initials(:string) - Defaults tonil.size(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-badge> status badge.
Attributes
color(:string) - Defaults tonil.size(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-banner> announcement.
Attributes
color(:string) - Defaults tonil.dismissable(:boolean) - Defaults tofalse.variant(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-breadcrumbs> navigation trail.
Attributes
separator(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-button> element.
Attributes
id(:string) - Defaults tonil.variant(:string) - Defaults tonil.color(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.type(:string) - Defaults tonil.size(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-calendar> date picker grid.
Attributes
id(:string) - Defaults tonil.value(:string) - Defaults tonil.min(:string) - Defaults tonil.max(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.size(:string) - Defaults tonil.locale(:string) - Defaults tonil.first_day(:integer) - Defaults tonil.- Global attributes are accepted.
Renders a <void-card> container.
Attributes
heading(:string) - Defaults tonil.variant(:string) - Defaults tonil.padding(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-carousel> image/content slider.
Attributes
id(:string) - Defaults tonil.active(:integer) - Defaults to0.loop(:boolean) - Defaults tofalse.autoplay(:boolean) - Defaults tofalse.interval(:integer) - Defaults tonil.size(:string) - Defaults tonil.controls(:boolean) - Defaults totrue.indicators(:boolean) - Defaults totrue.orientation(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-carousel-slide> inside a carousel.
Attributes
- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-checkbox> toggle.
Attributes
id(:string) - Defaults tonil.checked(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.indeterminate(:boolean) - Defaults tofalse.name(:string) - Defaults tonil.value(:string) - Defaults tonil.color(:string) - Defaults tonil.size(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Renders a <void-checkbox-group> container.
Attributes
id(:string) - Defaults tonil.label(:string) - Defaults tonil.orientation(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-combobox> searchable dropdown.
Attributes
id(:string) - Defaults tonil.value(:string) - Defaults tonil.placeholder(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.size(:string) - Defaults tonil.error(:string) - Defaults tonil.name(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-compose-input> chat-style input.
Attributes
id(:string) - Defaults tonil.value(:string) - Defaults tonil.placeholder(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.maxlength(:integer) - Defaults tonil.- Global attributes are accepted.
Renders a <void-date-picker> input with calendar dropdown.
Attributes
id(:string) - Defaults tonil.value(:string) - Defaults tonil.min(:string) - Defaults tonil.max(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.size(:string) - Defaults tonil.locale(:string) - Defaults tonil.first_day(:integer) - Defaults tonil.open(:boolean) - Defaults tofalse.placeholder(:string) - Defaults tonil.format(:string) - Defaults tonil.color(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-dialog> modal.
Attributes
id(:string) - Defaults tonil.open(:boolean) - Defaults tofalse.heading(:string) - Defaults tonil.size(:string) - Defaults tonil.closable(:boolean) - Defaults totrue.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-divider> separator.
Attributes
label(:string) - Defaults tonil.orientation(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-drawer> slide-out panel.
Attributes
id(:string) - Defaults tonil.open(:boolean) - Defaults tofalse.side(:string) - Defaults tonil.size(:string) - Defaults tonil.heading(:string) - Defaults tonil.closable(:boolean) - Defaults totrue.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-error-fallback> error display.
Attributes
heading(:string) - Defaults tonil.message(:string) - Defaults tonil.retryable(:boolean) - Defaults tofalse.retry_label(:string) - Defaults tonil.icon(:boolean) - Defaults totrue.- Global attributes are accepted.
Renders a <void-field> form field wrapper.
Attributes
label(:string) - Defaults tonil.error(:string) - Defaults tonil.helper(:string) - Defaults tonil.required(:boolean) - Defaults tofalse.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-file-upload> drop zone.
Attributes
id(:string) - Defaults tonil.accept(:string) - Defaults tonil.multiple(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.max_size(:integer) - Defaults tonil.error(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-hamburger> menu toggle.
Attributes
id(:string) - Defaults tonil.active(:boolean) - Defaults tofalse.size(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-indicator> badge/notification dot.
Attributes
color(:string) - Defaults tonil.size(:string) - Defaults tonil.count(:integer) - Defaults tonil.ping(:boolean) - Defaults tofalse.overlay(:boolean) - Defaults tofalse.position(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-input> text field.
Attributes
id(:string) - Defaults tonil.type(:string) - Defaults tonil.value(:string) - Defaults tonil.placeholder(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.readonly(:boolean) - Defaults tofalse.required(:boolean) - Defaults tofalse.name(:string) - Defaults tonil.size(:string) - Defaults tonil.error(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-list> container.
Attributes
dividers(:boolean) - Defaults tofalse.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-list-item> element.
Attributes
selected(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.interactive(:boolean) - Defaults tofalse.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-multiselect> multi-value dropdown.
Attributes
id(:string) - Defaults tonil.placeholder(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.size(:string) - Defaults tonil.error(:string) - Defaults tonil.name(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-number-input> numeric stepper.
Attributes
id(:string) - Defaults tonil.value(:integer) - Defaults tonil.min(:integer) - Defaults tonil.max(:integer) - Defaults tonil.step(:integer) - Defaults tonil.precision(:integer) - Defaults tonil.disabled(:boolean) - Defaults tofalse.readonly(:boolean) - Defaults tofalse.size(:string) - Defaults tonil.color(:string) - Defaults tonil.placeholder(:string) - Defaults tonil.controls(:string) - Defaults tonil.label(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-option> inside a multiselect or combobox.
Attributes
value(:string) (required)selected(:boolean) - Defaults tofalse.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-pagination> page navigator.
Attributes
id(:string) - Defaults tonil.total(:integer) - Defaults tonil.value(:integer) - Defaults tonil.siblings(:integer) - Defaults tonil.size(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-panel> container.
Attributes
label(:string) - Defaults tonil.variant(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-popover> floating panel.
Attributes
id(:string) - Defaults tonil.open(:boolean) - Defaults tofalse.position(:string) - Defaults tonil.trigger(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-progress> bar.
Attributes
value(:integer) - Defaults tonil.max(:integer) - Defaults tonil.color(:string) - Defaults tonil.size(:string) - Defaults tonil.indeterminate(:boolean) - Defaults tofalse.- Global attributes are accepted.
Renders a <void-radio> button.
Attributes
id(:string) - Defaults tonil.checked(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.name(:string) - Defaults tonil.value(:string) - Defaults tonil.color(:string) - Defaults tonil.size(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Renders a <void-radio-group> container.
Attributes
id(:string) - Defaults tonil.label(:string) - Defaults tonil.value(:string) - Defaults tonil.name(:string) - Defaults tonil.orientation(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-scroll-area> scrollable container.
Attributes
max_height(:string) - Defaults tonil.direction(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-segmented-control> selector.
Attributes
id(:string) - Defaults tonil.value(:string) - Defaults tonil.size(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-segmented-control-item> inside a segmented control.
Attributes
value(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-select> dropdown.
Attributes
id(:string) - Defaults tonil.value(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.required(:boolean) - Defaults tofalse.name(:string) - Defaults tonil.size(:string) - Defaults tonil.error(:string) - Defaults tonil.placeholder(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-sidebar> navigation sidebar.
Attributes
id(:string) - Defaults tonil.width(:string) - Defaults tonil.collapsed_width(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-skeleton> placeholder.
Attributes
variant(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-slider> range input.
Attributes
id(:string) - Defaults tonil.value(:integer) - Defaults tonil.min(:integer) - Defaults tonil.max(:integer) - Defaults tonil.step(:integer) - Defaults tonil.disabled(:boolean) - Defaults tofalse.name(:string) - Defaults tonil.show_value(:boolean) - Defaults tofalse.size(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-spinner> loading indicator.
Attributes
size(:string) - Defaults tonil.label(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-stat> metric display.
Attributes
label(:string) - Defaults tonil.value(:string) - Defaults tonil.delta(:string) - Defaults tonil.trend(:string) - Defaults tonil.color(:string) - Defaults tonil.size(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-status-dot> indicator.
Attributes
status(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-stepper> progress indicator.
Attributes
value(:integer) - Defaults tonil.steps(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-switch> toggle.
Attributes
id(:string) - Defaults tonil.checked(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.color(:string) - Defaults tonil.size(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-tab-panel> inside tabs.
Attributes
tab(:string) (required)label(:string) - Defaults tonil.active(:boolean) - Defaults tofalse.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-table> wrapper.
Attributes
striped(:boolean) - Defaults tofalse.hoverable(:boolean) - Defaults tofalse.compact(:boolean) - Defaults tofalse.bordered(:boolean) - Defaults tofalse.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-tabs> tab container.
Attributes
id(:string) - Defaults tonil.value(:string) - Defaults tonil.size(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-tag> label.
Attributes
id(:string) - Defaults tonil.color(:string) - Defaults tonil.removable(:boolean) - Defaults tofalse.size(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-textarea> multi-line text field.
Attributes
id(:string) - Defaults tonil.value(:string) - Defaults tonil.placeholder(:string) - Defaults tonil.disabled(:boolean) - Defaults tofalse.readonly(:boolean) - Defaults tofalse.required(:boolean) - Defaults tofalse.name(:string) - Defaults tonil.rows(:integer) - Defaults tonil.resize(:string) - Defaults tonil.size(:string) - Defaults tonil.error(:string) - Defaults tonil.- Global attributes are accepted.
Renders a <void-toast> notification.
Attributes
id(:string) - Defaults tonil.color(:string) - Defaults tonil.duration(:integer) - Defaults tonil.dismissable(:boolean) - Defaults totrue.heading(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-toast-container> positioning wrapper.
Attributes
position(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Renders a <void-toggle> button.
Attributes
id(:string) - Defaults tonil.pressed(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.color(:string) - Defaults tonil.size(:string) - Defaults tonil.variant(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-toggle-group> button group.
Attributes
id(:string) - Defaults tonil.value(:string) - Defaults tonil.multiple(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.size(:string) - Defaults tonil.color(:string) - Defaults tonil.orientation(:string) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)
Renders a <void-tooltip> hover tip.
Attributes
text(:string) - Defaults tonil.position(:string) - Defaults tonil.delay(:integer) - Defaults tonil.- Global attributes are accepted.
Slots
inner_block(required)