View Source PlausibleWeb.Components.Generic (Plausible v0.0.1)

Generic reusable components

Summary

Functions

Attributes

  • type (:string) - Defaults to "button".
  • theme (:string) - Defaults to "primary".
  • class (:string) - Defaults to "".
  • disabled (:boolean) - Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • href (:string) (required)
  • class (:string) - Defaults to "".
  • theme (:string) - Defaults to "primary".
  • disabled (:boolean) - Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • slug (:string) (required)

Slots

  • button (required) - Accepts attributes:
    • class (:string)
  • panel (required) - Accepts attributes:
    • class (:string)

Attributes

  • href (:string) (required)
  • new_tab (:boolean) - Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block (required)

Attributes

  • name (:atom) (required)
  • outline (:boolean) - Defaults to true.
  • solid (:boolean) - Defaults to false.
  • mini (:boolean) - Defaults to false.
  • Global attributes are accepted. Supports all globals plus: ["fill", "stroke", "stroke-width"].

Slots

  • title
  • subtitle
  • inner_block (required)
  • footer

Slots

  • item (required)

Attributes

  • title (:any) - Defaults to nil.
  • size (:atom) - Defaults to :sm.
  • theme (:atom) - Defaults to :yellow.
  • dismissable_id (:any) - Defaults to nil.
  • class (:string) - Defaults to "".
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - Defaults to "".
  • Global attributes are accepted.

Attributes

  • id (:any) - Defaults to nil.
  • href (:string) - Defaults to "#".
  • new_tab (:boolean) - Defaults to false.
  • class (:string) - Defaults to "".
  • method (:string) - Defaults to "get".
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • sticky? (:boolean) - Defaults to true.

Slots

  • inner_block (required)
  • tooltip_content (required)

Attributes

  • href (:string) (required)
  • new_tab (:boolean) - Defaults to false.
  • class (:string) - Defaults to "".
  • id (:any) - Defaults to nil.
  • method (:string) - Defaults to "get".
  • Global attributes are accepted.

Slots

  • inner_block

Functions

Attributes

  • type (:string) - Defaults to "button".
  • theme (:string) - Defaults to "primary".
  • class (:string) - Defaults to "".
  • disabled (:boolean) - Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • href (:string) (required)
  • class (:string) - Defaults to "".
  • theme (:string) - Defaults to "primary".
  • disabled (:boolean) - Defaults to false.
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • slug (:string) (required)

Attributes

  • name (:atom) (required)
  • outline (:boolean) - Defaults to true.
  • solid (:boolean) - Defaults to false.
  • mini (:boolean) - Defaults to false.
  • Global attributes are accepted. Supports all globals plus: ["fill", "stroke", "stroke-width"].

Slots

  • title
  • subtitle
  • inner_block (required)
  • footer

Slots

  • item (required)

Attributes

  • title (:any) - Defaults to nil.
  • size (:atom) - Defaults to :sm.
  • theme (:atom) - Defaults to :yellow.
  • dismissable_id (:any) - Defaults to nil.
  • class (:string) - Defaults to "".
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • class (:any) - Defaults to "".
  • Global attributes are accepted.

Attributes

  • id (:any) - Defaults to nil.
  • href (:string) - Defaults to "#".
  • new_tab (:boolean) - Defaults to false.
  • class (:string) - Defaults to "".
  • method (:string) - Defaults to "get".
  • Global attributes are accepted.

Slots

  • inner_block

Attributes

  • sticky? (:boolean) - Defaults to true.

Slots

  • inner_block (required)
  • tooltip_content (required)

Attributes

  • href (:string) (required)
  • new_tab (:boolean) - Defaults to false.
  • class (:string) - Defaults to "".
  • id (:any) - Defaults to nil.
  • method (:string) - Defaults to "get".
  • Global attributes are accepted.

Slots

  • inner_block