Everything related to text. Headings, paragraphs and links
Summary
Functions
A styled blockquote with a left border.
A horizontal rule with sensible vertical spacing.
Inline code styling for snippets within a sentence.
A larger, muted introductory paragraph for the top of a page or section.
Usage
Slightly larger, emphasised body text.
Muted secondary text, e.g. a caption or helper line.
Small, tight label text.
Usage
Functions
A styled blockquote with a left border.
<.blockquote>"This library shipped our marketing site in a weekend."</.blockquote>Attributes
class(:any) - CSS class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Attributes
class(:any) - CSS class. Defaults tonil.label(:string) - label your heading. Defaults tonil.no_margin(:boolean) - removes margin from headings. Defaults tonil.underline(:boolean) - underlines a heading. Defaults tofalse.color_class(:any) - adds a color class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Attributes
class(:any) - CSS class. Defaults tonil.label(:string) - label your heading. Defaults tonil.no_margin(:boolean) - removes margin from headings. Defaults tonil.underline(:boolean) - underlines a heading. Defaults tofalse.color_class(:any) - adds a color class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Attributes
class(:any) - CSS class. Defaults tonil.label(:string) - label your heading. Defaults tonil.no_margin(:boolean) - removes margin from headings. Defaults tonil.underline(:boolean) - underlines a heading. Defaults tofalse.color_class(:any) - adds a color class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Attributes
class(:any) - CSS class. Defaults tonil.label(:string) - label your heading. Defaults tonil.no_margin(:boolean) - removes margin from headings. Defaults tonil.underline(:boolean) - underlines a heading. Defaults tofalse.color_class(:any) - adds a color class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Attributes
class(:any) - CSS class. Defaults tonil.label(:string) - label your heading. Defaults tonil.no_margin(:boolean) - removes margin from headings. Defaults tonil.underline(:boolean) - underlines a heading. Defaults tofalse.color_class(:any) - adds a color class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
A horizontal rule with sensible vertical spacing.
Attributes
class(:any) - CSS class. Defaults tonil.- Global attributes are accepted.
Inline code styling for snippets within a sentence.
Run <.inline_code>mix deps.get</.inline_code> to install.Attributes
class(:any) - CSS class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
A larger, muted introductory paragraph for the top of a page or section.
<.lead>Petal Components is a set of HEEx components for Phoenix.</.lead>Attributes
class(:any) - CSS class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Usage:
<.ol>
<li>Item 1</li>
<li>Item 2</li>
</.ol>Attributes
class(:any) - CSS class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Attributes
class(:any) - CSS class. Defaults tonil.no_margin(:boolean) - removes margin from paragraph. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Attributes
class(:any) - CSS class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Slightly larger, emphasised body text.
Attributes
class(:any) - CSS class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Muted secondary text, e.g. a caption or helper line.
Attributes
class(:any) - CSS class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Small, tight label text.
Attributes
class(:any) - CSS class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block
Usage:
<.ul>
<li>Item 1</li>
<li>Item 2</li>
</.ul>Attributes
class(:any) - CSS class. Defaults tonil.- Global attributes are accepted.
Slots
inner_block