Skip to content

Box ​

Styles

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

Import ​

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

Usage ​

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

Properties ​

PropertyAttributeTypeDefaultDescription
componentcomponentstring'div'The component tag to render
mmstring | undefined—Margin on all sides. Accepts CSS length values (e.g. '16px', '1rem'). Note: unlike FlintGrid/FlintStack, these do NOT use a spacing multiplier.
mtmtstring | undefined—Margin top.
mrmrstring | undefined—Margin right.
mbmbstring | undefined—Margin bottom.
mlmlstring | undefined—Margin left.
mxmxstring | undefined—Margin on the horizontal (left and right) axis.
mymystring | undefined—Margin on the vertical (top and bottom) axis.
ppstring | undefined—Padding on all sides. Accepts CSS length values (e.g. '16px', '1rem'). Note: unlike FlintGrid/FlintStack, these do NOT use a spacing multiplier.
ptptstring | undefined—Padding top.
prprstring | undefined—Padding right.
pbpbstring | undefined—Padding bottom.
plplstring | undefined—Padding left.
pxpxstring | undefined—Padding on the horizontal (left and right) axis.
pypystring | undefined—Padding on the vertical (top and bottom) axis.
displaydisplaystring | undefined—CSS display value.
flexDirectionflexDirectionstring | undefined—CSS flex-direction value.
alignItemsalignItemsstring | undefined—CSS align-items value.
justifyContentjustifyContentstring | undefined—CSS justify-content value.
flexWrapflexWrapstring | undefined—CSS flex-wrap value.
flexBasisflexBasisstring | undefined—CSS flex-basis value.
flexGrowflexGrowstring | undefined—CSS flex-grow value.
flexShrinkflexShrinkstring | undefined—CSS flex-shrink value.
gapgapstring | undefined—CSS gap between flex or grid items.
bgcolorbgcolorstring | undefined—Background color. Supports theme tokens 'primary' and 'secondary'.
colorcolorstring | undefined—Text color. Supports theme tokens 'primary' and 'secondary'.
borderborderstring | undefined—CSS border shorthand value.
borderRadiusborderRadiusstring | undefined—CSS border-radius value.
boxShadowboxShadowstring | undefined—CSS box-shadow value.
widthwidthstring | undefined—CSS width value.
heightheightstring | undefined—CSS height value.

Events ​

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

CSS Parts ​

NameDescription
baseThe component's base wrapper element.

CSS Custom Properties ​

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