View Source PetalComponents.Typography (petal_components v1.9.2)
Everything related to text. Headings, paragraphs and links
Summary
Functions
Attributes
class
(:any
) - CSS class. Defaults to""
.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
(:string
) - adds a color class. Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.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
(:string
) - adds a color class. Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.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
(:string
) - adds a color class. Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.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
(:string
) - adds a color class. Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.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
(:string
) - adds a color class. Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
Usage
Attributes
class
(:any
) - CSS class. Defaults to""
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.- Global attributes are accepted.
Slots
inner_block
Usage
Functions
Attributes
class
(:any
) - CSS class. Defaults to""
.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
(:string
) - adds a color class. Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.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
(:string
) - adds a color class. Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.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
(:string
) - adds a color class. Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.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
(:string
) - adds a color class. Defaults tonil
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.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
(:string
) - 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 to""
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.- Global attributes are accepted.
Slots
inner_block
Attributes
class
(:any
) - CSS class. Defaults to""
.- Global attributes are accepted.
Slots
inner_block
Usage:
<.ul>
<li>Item 1</li>
<li>Item 2</li>
</.ul>
Attributes
class
(:any
) - CSS class. Defaults to""
.- Global attributes are accepted.
Slots
inner_block