Info Box Group

Regular Info Regular
Regular Info Regular
Attribute Type Documentation Default Value
class :any []
mobile_space :string

Spacing for mobile stack layout

"base"
rest :global

Additional attributes passed to the container

info_box :slot

Info box slots that can be defined multiple times

Show slot attributes Hide slot attributes
Required label * :string

Label for the info box

desktop_attrs :map

Attributes to pass to info_box on desktop

mobile_attrs :map

Attributes to pass to info_box on mobile

<:info_box label="Featured" desktop_attrs={%{id: "featured-box"}} mobile_attrs={%{id: "mobile-featured-box"}}>
  Important Info
</:info_box>
<:info_box label="Regular" desktop_attrs={%{id: "regular-box", secondary: true}} mobile_attrs={%{id: "mobile-regular-box", secondary: true}}>
  Regular Info
</:info_box>
Required inner_block * :slot

Desktop layout content with pre-rendered info_box components

<.row space="sm" justify="stretch">
  <%= info_box_1 %>
  <%= info_box_2 %>
</.row>