EssenceUI.Components.Quote (Essence UI v0.2.0)

Copy Markdown View Source

Themed inline quotation.

Summary

Functions

Renders a short inline quotation.

Functions

es_quote(assigns)

Renders a short inline quotation.

Examples

<.es_quote>Styles come and go. Good design is a language, not a style</.es_quote>
<.es_quote truncate>Long quote that will be truncated if too long.</.es_quote>

Props

  • wrap - Text wrapping: one of "wrap", "nowrap", "pretty", or "balance".
  • class - Additional CSS classes to add to the element.
  • style - Additional inline styles.
  • rest - Additional HTML attributes.

Attributes

  • truncate (:boolean) - Whether to truncate text with ellipsis when it overflows.
  • wrap (:string) - Text wrapping: one of wrap, nowrap, pretty, balance. Must be one of "wrap", "nowrap", "pretty", or "balance".
  • class (:string) - Additional CSS classes. Defaults to nil.
  • style (:string) - Additional inline styles. Defaults to nil.
  • rest (:any) - Additional HTML attributes. Defaults to %{}.

Slots

  • inner_block (required)