Skip to content

Box ​

Styles

Loading...
  • Tag: <flint-box>
  • Class: FlintBox

Import ​

ts
import 'flint-ui'; // auto-registers all
// or
import { FlintBox } from 'flint-ui';

Usage ​

html
<flint-box></flint-box>

Properties ​

PropertyAttributeTypeDefaultDescription
componentcomponentstring'div'The component tag to render
mmstring—Margin on all sides.
mtmtstring—Margin top.
mrmrstring—Margin right.
mbmbstring—Margin bottom.
mlmlstring—Margin left.
mxmxstring—Margin on the horizontal (left and right) axis.
mymystring—Margin on the vertical (top and bottom) axis.
ppstring—Padding on all sides.
ptptstring—Padding top.
prprstring—Padding right.
pbpbstring—Padding bottom.
plplstring—Padding left.
pxpxstring—Padding on the horizontal (left and right) axis.
pypystring—Padding on the vertical (top and bottom) axis.
displaydisplaystring—CSS display value.
flexDirectionflex-directionstring—CSS flex-direction value.
alignItemsalign-itemsstring—CSS align-items value.
justifyContentjustify-contentstring—CSS justify-content value.
flexWrapflex-wrapstring—CSS flex-wrap value.
flexBasisflex-basisstring—CSS flex-basis value.
flexGrowflex-growstring—CSS flex-grow value.
flexShrinkflex-shrinkstring—CSS flex-shrink value.
gapgapstring—CSS gap between flex or grid items.
bgcolorbgcolorstring—Background color. Supports theme tokens 'primary' and 'secondary'.
colorcolorstring—Text color. Supports theme tokens 'primary' and 'secondary'.
borderborderstring—CSS border shorthand value.
borderRadiusborder-radiusstring—CSS border-radius value.
boxShadowbox-shadowstring—CSS box-shadow value.
widthwidthstring—CSS width value.
heightheightstring—CSS height value.

Events ​

EventDetailDescription
flint-box-warning—Dispatched when an unknown component tag is used and falls back to div.

Slots ​

NameDescription
(default)Default slot for content

CSS Custom Properties ​

PropertyDefault
--flint-box-bgtransparent
--flint-box-colorinherit
--flint-box-bordernone
--flint-box-border-radius0
--flint-box-shadownone
--flint-box-padding0