Shadix.Components.Kbd (shadix v0.0.1)

Copy Markdown View Source

Kbd component translated from the shadcn-ui "kbd" component.

Exposes kbd/1 and kbd_group/1, both rendering <kbd> elements with the corresponding data-slot values from the original source.

Summary

Functions

kbd(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)

kbd_group(assigns)

Attributes

  • class (:string) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)