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 to nil.
  • no_margin (:boolean) - removes margin from headings. Defaults to nil.
  • underline (:boolean) - underlines a heading. Defaults to false.
  • color_class (:string) - adds a color class. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - CSS class. Defaults to "".
  • label (:string) - label your heading. Defaults to nil.
  • no_margin (:boolean) - removes margin from headings. Defaults to nil.
  • underline (:boolean) - underlines a heading. Defaults to false.
  • color_class (:string) - adds a color class. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - CSS class. Defaults to "".
  • label (:string) - label your heading. Defaults to nil.
  • no_margin (:boolean) - removes margin from headings. Defaults to nil.
  • underline (:boolean) - underlines a heading. Defaults to false.
  • color_class (:string) - adds a color class. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - CSS class. Defaults to "".
  • label (:string) - label your heading. Defaults to nil.
  • no_margin (:boolean) - removes margin from headings. Defaults to nil.
  • underline (:boolean) - underlines a heading. Defaults to false.
  • color_class (:string) - adds a color class. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - CSS class. Defaults to "".
  • label (:string) - label your heading. Defaults to nil.
  • no_margin (:boolean) - removes margin from headings. Defaults to nil.
  • underline (:boolean) - underlines a heading. Defaults to false.
  • color_class (:string) - adds a color class. Defaults to nil.
  • 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 to nil.
  • no_margin (:boolean) - removes margin from headings. Defaults to nil.
  • underline (:boolean) - underlines a heading. Defaults to false.
  • color_class (:string) - adds a color class. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - CSS class. Defaults to "".
  • label (:string) - label your heading. Defaults to nil.
  • no_margin (:boolean) - removes margin from headings. Defaults to nil.
  • underline (:boolean) - underlines a heading. Defaults to false.
  • color_class (:string) - adds a color class. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - CSS class. Defaults to "".
  • label (:string) - label your heading. Defaults to nil.
  • no_margin (:boolean) - removes margin from headings. Defaults to nil.
  • underline (:boolean) - underlines a heading. Defaults to false.
  • color_class (:string) - adds a color class. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - CSS class. Defaults to "".
  • label (:string) - label your heading. Defaults to nil.
  • no_margin (:boolean) - removes margin from headings. Defaults to nil.
  • underline (:boolean) - underlines a heading. Defaults to false.
  • color_class (:string) - adds a color class. Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - CSS class. Defaults to "".
  • label (:string) - label your heading. Defaults to nil.
  • no_margin (:boolean) - removes margin from headings. Defaults to nil.
  • underline (:boolean) - underlines a heading. Defaults to false.
  • color_class (:string) - adds a color class. Defaults to nil.
  • 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