PhiaUi.Components.Marketing.FeatureSection (phia_ui v0.1.17)

Copy Markdown View Source

Grid section for displaying feature cards with heading and description.

Provides a responsive grid layout with an optional title and description header. Use as a container for feature cards, benefit blocks, or any repeated content that benefits from a grid layout.

Examples

<.feature_section title="Features" description="Everything you need." columns={3}>
  <div>Feature 1</div>
  <div>Feature 2</div>
  <div>Feature 3</div>
</.feature_section>

<.feature_section columns={2} align={:start}>
  <div>Left-aligned feature grid</div>
  <div>With two columns</div>
</.feature_section>

Summary

Functions

Renders a responsive feature grid section with optional heading and description.

Functions

feature_section(assigns)

Renders a responsive feature grid section with optional heading and description.

Attributes

  • title (:string) - Defaults to nil.
  • description (:string) - Defaults to nil.
  • columns (:integer) - Defaults to 3.
  • align (:atom) - Defaults to :center. Must be one of :center, or :start.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required) - Feature card children.