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