BorderBox

readyNot reviewed for a11y
This page may be removed. Primer plans to move all Rails component documentation to Lookbook.

Description

BorderBox is a Box component with a border.

Arguments

NameRequiredDescription
padding
Symbol

One of :condensed, :default, or :spacious.

system_arguments

Slots

Optional Header.

When using header.with_title, the recommended tag is a heading tag, such as h1, h2, h3, etc.

NameRequiredDescription
system_arguments

body

Optional Body.

NameRequiredDescription
system_arguments

Optional Footer.

NameRequiredDescription
system_arguments

rows

Use Rows to add rows with borders and maintain the same padding.

NameRequiredDescription
scheme
Symbol

Color scheme. One of :default, :info, :neutral, or :warning.

system_arguments

BorderBox::Header

BorderBox::Header is used inside BorderBox to render its header slot.

Arguments

NameRequiredDescription
system_arguments

Slots

title

Optional Title.

NameRequiredDescription
tag
Symbol

One of :h1, :h2, :h3, :h4, :h5, or :h6.

system_arguments

Methods

id

Returns the value of attribute id.