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
Name | Required | Description |
---|---|---|
padding | Symbol One of | |
system_arguments | Hash |
Slots
header
Optional Header.
When using header.with_title, the recommended tag is a heading tag, such as h1, h2, h3, etc.
Name | Required | Description |
---|---|---|
system_arguments | Hash |
body
Optional Body.
Name | Required | Description |
---|---|---|
system_arguments | Hash |
footer
Optional Footer.
Name | Required | Description |
---|---|---|
system_arguments | Hash |
rows
Use Rows to add rows with borders and maintain the same padding.
Name | Required | Description |
---|---|---|
scheme | Symbol Color scheme. One of | |
system_arguments | Hash |
BorderBox::Header
BorderBox::Header
is used inside BorderBox
to render its header slot.
Arguments
Name | Required | Description |
---|---|---|
system_arguments | Hash |
Slots
title
Optional Title.
Name | Required | Description |
---|---|---|
tag | Symbol One of | |
system_arguments | Hash |
Methods
id
Returns the value of attribute id.