Border box

Border box is a box component with a border.

v0.35.2BetaNot reviewed for accessibility

Description

BorderBox is a Box component with a border.

Arguments

NameTypeDefaultDescription
padding
Symbol

:default

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

system_arguments
Hash

N/A

Examples

Slots

Optional Header.

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

NameTypeDefaultDescription
system_arguments
Hash

N/A

body

Optional Body.

NameTypeDefaultDescription
system_arguments
Hash

N/A

Optional Footer.

NameTypeDefaultDescription
system_arguments
Hash

N/A

rows

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

NameTypeDefaultDescription
scheme
Symbol

N/A

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

system_arguments
Hash

N/A

BorderBox::Header

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

Arguments

NameTypeDefaultDescription
system_arguments
Hash

N/A

Slots

title

Optional Title.

NameTypeDefaultDescription
tag
Symbol

N/A

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

system_arguments
Hash

N/A

Methods

id

Returns the value of attribute id.