PetalComponents.Typography (petal_components v3.0.1)
View SourceEverything related to text. Headings, paragraphs and links
Summary
Functions
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
Usage
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
Usage
Functions
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
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
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