Usage
| Configuration | Purpose | Emphasis |
|---|---|---|
FlexBox alias | Shorthand flex container | Still token-driven gaps and alignment |
| Padding / margin scales | Rhythm | Prefer axis shorthand when horizontal and vertical differ |
| Background + border | Card-like regions | Don’t mimic interactive cards without proper focus semantics |
| Positioned overlays | Contextual layers | Manage zIndex with design tokens; avoid arbitrary stacks |
FlexBox is Box with flex display preset—choose it to reduce boilerplate, not to change semantics.
gap and wrapping over fixed widths when content varies.onClick alone without accessibility parity.@prepared911/ui, Box and FlexBox drop pointer, mouse, context-menu, and keyboard handlers. A context-menu region is Interactable inside ContextMenuTrigger. Focus and blur still pass.height={BlockSize.Full} inside a sized parent, or a viewport step). On the row that should absorb leftover space and scroll, set grow, shrink, minHeight={BlockSize.Zero}, and overflow={Overflow.Auto} (or overflowBlock={Overflow.Auto}). shrink alone only clears the inline-axis minimum; block-axis flex scrolling needs minHeight={BlockSize.Zero}.
Do
zIndex, Background, and Border rather than raw values.className from apps or remotes to restyle Box; it is deprecated outside the design system. Use enum props, shipped parts, or request a prop via the find-pattern skill.overflow: hidden), verify keyboard users can still reach hidden interactive elements or provide another path.