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.

icon.html.erb Copy snippet Copied!
1
<%= render IconComponent.new(filled: true, shade: "green") %>

Icon

Resolves a committed SVG by exact size (16 or 12), style (outline or filled), and name, then recolours its existing paint channels by shade. Icon has no authoritative Figma component-set mapping; this documents its code/asset contract.

Size
16 12
Filled
Shade
Primary Secondary Tertiary White Red Green
PropTypeDefault
icon Icon file name without extension. Optional — when blank/omitted, falls back to the "square" placeholder. String nil
size Render size: 16 (default) or 12. Dimensions only, not style. Integer 16
filled false (default) = outline art (stroke); true = filled art (fill). Boolean false
shade One of SHADES: primary (default, text/primary) · secondary · tertiary · white · red · green. Pass nil for the SVG's raw black. String "primary"