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

Copy Markdown View Source

Keyboard key label for shortcuts and key hints.

Summary

Functions

Renders a keyboard key label.

Functions

kbd(assigns)

Renders a keyboard key label.

Attributes

  • size (:string) - Kbd size (1-9). Responsive supported. Must be one of "1", "2", "3", "4", "5", "6", "7", "8", or "9".
  • variant (:string) - Visual style: classic or soft. Defaults to "classic". Must be one of "classic", or "soft".
  • rest (:any) - Additional HTML attributes. Defaults to %{}.

Slots

  • inner_block (required)