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.
  • mt? (:boolean) - Defaults to true.
  • Global attributes are accepted. Supports all globals plus: ["name"].

Slots

  • inner_block

Attributes

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

Slots

  • inner_block

Attributes

  • href (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["method", "disabled"].

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"].

Attributes

  • href (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["method", "disabled"].

Attributes

  • filter_text (:string) - Defaults to "".
  • placeholder (:string) - Defaults to "".
  • filtering_enabled? (:boolean) - Defaults to true.

Slots

  • inner_block

Attributes

  • Global attributes are accepted.

Slots

  • title
  • subtitle
  • inner_block (required)
  • footer

Slots

  • item (required)

Attributes

  • class (:any) - Defaults to nil.

Slots

  • inner_block (required)

Attributes

  • title (:any) - Defaults to nil.
  • 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

  • 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

  • width (:string) - Defaults to "min-w-full".
  • rows (:list) - Defaults to [].
  • row_attrs (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • thead
  • tbody (required)
  • inner_block

Attributes

  • truncate (:boolean) - Defaults to false.
  • max_width (:string) - Defaults to "".
  • height (:string) - Defaults to "".
  • actions (:boolean) - Defaults to nil.
  • hide_on_mobile (:boolean) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)

Attributes

  • invisible (:boolean) - Defaults to false.
  • hide_on_mobile (:boolean) - Defaults to nil.

Slots

  • inner_block (required)

Attributes

  • docs (:string) - Defaults to nil.
  • feature_mod (:atom) - Defaults to nil.
  • site (:any)
  • conn (:any)

Slots

  • inner_block (required)
  • title (required)
  • subtitle (required)

Attributes

  • class (:any) - Defaults to nil.

Slots

  • inner_block (required)

Attributes

  • set_to (:boolean) - Defaults to false.
  • disabled? (:boolean) - Defaults to false.

Slots

  • inner_block (required)

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 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.
  • mt? (:boolean) - Defaults to true.
  • Global attributes are accepted. Supports all globals plus: ["name"].

Slots

  • inner_block

Attributes

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

Slots

  • inner_block

Attributes

  • href (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["method", "disabled"].

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"].

Attributes

  • href (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["method", "disabled"].

Attributes

  • filter_text (:string) - Defaults to "".
  • placeholder (:string) - Defaults to "".
  • filtering_enabled? (:boolean) - Defaults to true.

Slots

  • inner_block

Attributes

  • Global attributes are accepted.

Slots

  • title
  • subtitle
  • inner_block (required)
  • footer

Slots

  • item (required)

Attributes

  • class (:any) - Defaults to nil.

Slots

  • inner_block (required)

Attributes

  • title (:any) - Defaults to nil.
  • 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

  • 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

  • width (:string) - Defaults to "min-w-full".
  • rows (:list) - Defaults to [].
  • row_attrs (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • thead
  • tbody (required)
  • inner_block

Attributes

  • truncate (:boolean) - Defaults to false.
  • max_width (:string) - Defaults to "".
  • height (:string) - Defaults to "".
  • actions (:boolean) - Defaults to nil.
  • hide_on_mobile (:boolean) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)

Attributes

  • invisible (:boolean) - Defaults to false.
  • hide_on_mobile (:boolean) - Defaults to nil.

Slots

  • inner_block (required)

Attributes

  • docs (:string) - Defaults to nil.
  • feature_mod (:atom) - Defaults to nil.
  • site (:any)
  • conn (:any)

Slots

  • inner_block (required)
  • title (required)
  • subtitle (required)

Attributes

  • class (:any) - Defaults to nil.

Slots

  • inner_block (required)

Attributes

  • set_to (:boolean) - Defaults to false.
  • disabled? (:boolean) - Defaults to false.

Slots

  • inner_block (required)

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 nil.
  • method (:string) - Defaults to "get".
  • Global attributes are accepted.

Slots

  • inner_block