Border box

Border box is a box component with a border.

v0.22.0BetaNot reviewed for accessibility

Description

BorderBox is a Box component with a border.

Arguments

NameDefaultDescription
padding

:default

Symbol

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

system_arguments

N/A

Hash

Examples

Slots

Optional Header.

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

NameDefaultDescription
system_arguments

N/A

Hash

body

Optional Body.

NameDefaultDescription
system_arguments

N/A

Hash

Optional Footer.

NameDefaultDescription
system_arguments

N/A

Hash

rows

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

NameDefaultDescription
scheme

N/A

Symbol

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

system_arguments

N/A

Hash

BorderBox::Header

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

Arguments

NameDefaultDescription
system_arguments

N/A

Hash

Slots

title

Optional Title.

NameDefaultDescription
tag

N/A

Symbol

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

system_arguments

N/A

Hash

Methods

id

Returns the value of attribute id.