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
link.html.erb Copy snippet Copied!
1
<%= render LinkComponent.new(label: "Label", contained_in: "paragraph") %>

Link

A primary Control/Regular link with exact text/paragraph underline states and an optional caller-selected Central icon.

Leading icon
Selected
Contained in
Text Paragraph
PropTypeDefault
label Link text. Also accepts a content block. String nil
href The link target. String nil
icon Optional caller-selected Central icon name, rendered via IconComponent (16px, primary). Not a permanent Link fixture. String nil
selected When true, carries a persistent solid underline. Boolean false
contained_in One of CONTAINED_INS — where the link lives, which sets the underline: "text" (default, UI chrome — no underline until hover) · "paragraph" (running text — dotted underline, solid on hover). A link inside a `<p>` gets the paragraph style automatically. String "text"
**html_options Any extra HTML attributes (data-*, aria-*, class, …). Hash —

Contains

  • Icon