AisBox
AisBox is simple component used to add common variants and padding to content. AisBox does not impact text size or set a layout. Developers may customize a box using Tailwind's many utility classes. Common uses include search filters, control panels, and user messages.
Pro-tip: You can put anything in a box.
Props
variant
variant conveys the type of content being presented. The accepted values are: default, primary, secondary, info, success, warning, danger. The default value is default.
The quick brown fox jumps over the lazy dog.
outline
Setting outline to true will give the box a more prominent border. When true, the border will match the style of AisAlert.
The quick brown fox jumps over the lazy dog.
border-muted
border-muted is deprecated. Its behavior is now the default. Use outline to activate more visually distinct border.
padding
The padding prop controls the box's padding. It accepts the semantic values sm, md, and lg along with all Tailwind padding utilities.
The quick brown fox jumps over the lazy dog.
rounded
The rounded prop controls the border radius of the box. The accepted values are: true, false, sm, rounded, md, lg, xl, 2xl, 3xl, and full. The default value is false.
Pro-tip: You can put anything in a box.
Customization
AisBox can be customized using Tailwind's utilities. Customizations may include text size, shadows, and rounded corners.
Pro-tip: Use restraint.