Button Card Data List Detail Disclosure Divider Field Set Icon Button Icon Icon Select Inline Text Field Label Link Link Select Menu Modal Rich Text Box Section Select Tabs Tag Text Text Field Text Field With Prefix Toggle

Dimsum v2.0.0

An agentic component library for Ruby On Rails.

Label
tag.html.erb Copy snippet Copied!
1
<%= render TagComponent.new(label: "Label", style: "solid") %>

Tag

A small mono pill — a label in the monospace secondary font, optionally with a caller-selected 12px Central icon. Styles: outline (bordered) and solid (filled). Colour: grey.

Style
Outline Solid
Colour
Grey
Leading icon
PropTypeDefault
label Tag text. Also accepts a content block. String nil
style One of STYLES: outline (bordered) · solid (filled). String "outline"
colour One of COLOURS: grey. String "grey"
icon Optional caller-selected Central icon name → IconComponent (12px, filled, primary). Tag does not own a fixed glyph. String nil
**html_options Any extra HTML attributes (id, class, data-*, …). Hash —

Contains

  • Icon