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
text.html.erb Copy snippet Copied!
1
<%= render TextComponent.new(text: "Label", icon: "square") %>

Text

Primary inline text in Figma's Paragraph/Regular style, with an optional caller-selected 16px leading icon.

Leading icon
PropTypeDefault
text Text content. Also accepts a content block. String nil
icon Optional caller-selected Central icon name. Add the exact glyph in the consumer with `node script/icons-central.mjs add <name>`, then pass that name here. Text does not own a fixed icon fixture. String nil
**html_options Extra HTML attributes (id, class, data-*, aria-*, …). Hash —

Contains

  • Icon