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
divider.html.erb Copy snippet Copied!
1
<%= render DividerComponent.new(label: "Label", position: "left") %>

Divider

A rule for separating content. Horizontal is plain by default, or has a tertiary label set to the left, middle, or right — the line fills the remaining space on either side. A plain vertical orientation fills its container's supplied height.

Orientation
Horizontal Vertical
Position
Left Middle Right
PropTypeDefault
label Optional label text; also accepts a content block. When blank, or when vertical, the divider is a plain line. String nil
orientation One of ORIENTATIONS — horizontal or vertical. String "horizontal"
position One of POSITIONS — where the label sits: left · middle · right. Ignored when plain or vertical. String "middle"
**html_options Any extra HTML attributes (id, class, data-*, …). Hash —