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

Label

A form-field label with an optional trailing, component-owned Central info icon, bindable to an input.

Info
PropTypeDefault
text Label text. Also accepts a content block. String nil
info Show the trailing, component-owned Central information icon. Boolean false
**html_options Extra HTML attributes — pass `for:` to bind the label to an input id, plus any `id`, `data-*`, `class`, … Hash —

Contains

  • Icon