View Source Shino.UI.Badge (shino v0.1.0-alpha.0)

Provides badge related components.

References

Summary

Functions

Renders a badge.

Functions

Renders a badge.

Examples

<.badge>Default</.badge>
<.badge variant="secondary">Secondary</.badge>
<.badge variant="outline">Outline</.badge>
<.badge variant="destructive">Destructive</.badge>

Attributes

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

Slots

  • inner_block (required)