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-field-with-prefix.html.erb Copy snippet Copied!
1
<%= render TextFieldWithPrefixComponent.new(prefix: "Label", placeholder: "Placeholder", disabled: true) %>

Text Field With Prefix

A responsive text input with a static prefix, such as a protocol, fused to its left edge.

Size
MD LG
Disabled
PropTypeDefault
prefix Static text shown before the input (required, e.g. "https://"). String required
value Input value (default none — empty field). String nil
placeholder Empty-state placeholder (default none). String nil
type Input type — "text" (default), "email", "url", … String "text"
size One of SIZES: md (36px, default), lg (40px). String "md"
disabled Disables the input. Boolean false
**html_options Extra HTML attributes (id, name, data-*, aria-*, class, …). Hash —