OctantisWeb.Components.Polaris.UnstyledButton (octantis v0.1.12)

View Source

Underlying button. Button is implemented with this and sometimes Polaris uses this directly instead of button

Examples

  <.unstyled_button>Button</.unstyled_button>

See

Summary

Functions

Underlying button. Button is implemented with this and sometimes Polaris uses this directly instead of button

Functions

unstyled_button(assigns)

Underlying button. Button is implemented with this and sometimes Polaris uses this directly instead of button

Examples

  <.unstyled_button>Button</.unstyled_button>

See

Attributes

  • id (:string) - Defaults to nil.
  • class (:any) - Defaults to nil.
  • submit (:boolean) - Defaults to false.
  • disabled (:boolean) - Defaults to false.
  • loading (:boolean) - Defaults to false.
  • aria_controls (:string) - Indicates the ID of the element that is controlled by the button. Defaults to nil.
  • aria_described_by (:string) - Indicates the ID of the element that describes the button. Defaults to nil.
  • aria_expanded (:string) - Defaults to nil.
  • aria_checked (:string) - Defaults to nil.
  • aria_pressed (:string) - Defaults to nil.
  • aria_label (:string) - Defaults to nil.
  • role (:string) - Defaults to nil.
  • url (:string) - Defaults to nil.
  • phx_click (:any) - onClick. Defaults to nil.
  • phx_focus (:any) - onFocus. Defaults to nil.
  • phx_blur (:any) - onBlur. Defaults to nil.
  • phx_key (:any) - onKeyPress. Defaults to nil.
  • phx_keyup (:any) - onKeyUp. Defaults to nil.
  • phx_keydown (:any) - onKeyDown. Defaults to nil.
  • phx_target (:any) - Allows setting the target for the button. Defaults to nil.
  • name (:string) - Name to be passed down to the button. Defaults to nil.
  • value (:string) - Name to be passed down to the button. Defaults to nil.
  • phx_values (:list) - A list of key value pairs to be passed as a value for actions. See assign_phx_bindings/2. Defaults to [].
  • style (:string) - Style attribute.
  • display (:string) - Style attribute.
  • margin (:string) - Style attribute.
  • max_height (:string) - Style attribute.
  • min_height (:string) - Style attribute.
  • object_fit (:string) - Style attribute.
  • flex_grow (:string) - Style attribute.
  • justify_content (:string) - Style attribute.
  • grid_auto_rows (:string) - Style attribute.
  • grid_template_columns (:string) - Style attribute.
  • grid_template_rows (:string) - Style attribute.
  • align_items (:string) - Style attribute.
  • align_self (:string) - Style attribute.
  • Global attributes are accepted.

Slots

  • inner_block