-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Milestone
Description
Task Description ✏️
Implement the Flex primitive component extending View as part of the design system epic #40.
Flex will provide a semantic wrapper with display: flex and support customizable flexDirection while inheriting all responsive styled-system props from View. This component will serve as the foundation for layout compositions throughout the system.
Acceptance Criteria ✅
-
Flexcomponent implemented by extendingViewwithdisplay: flex. - Supports
flexDirectionprop with default value'column'. - Inherits all styled-system props from
View(space, layout, color, border, typography, flexbox, position). - Unit tests verify rendering of children and correct
flex-directionbehavior. - Storybook stories demonstrate
Flexusage in bothrowandcolumndirections with adjustable controls. - No raw CSS values — all spacing, color, and layout derived from theme tokens.
- Code passes linting, typing, and CI checks.
Dependencies 🔗
Viewcomponent [Task] Implement Base View #41@emotion/styledstyled-system
Definition of Ready (DoR) 📋
- Task is independent and scoped to the
Flexcomponent. Viewcomponent is implemented and tested.- Theme tokens are available for spacing, color, and layout.
- Props to be supported by
Flexare agreed upon (flexDirection+ inherited styled-system props).
Definition of Done (DoD) 🏁
-
Flexcomponent extendsViewand sets defaultdisplay: flex. -
flexDirectionprop works correctly with default'column'. - Unit tests cover child rendering and
flex-directionbehavior. - Storybook stories display
rowandcolumnlayouts with adjustable controls. - Code reviewed, linted, typed, and passes CI checks.
- Documentation updated in Storybook for component usage.
- Component is ready for reuse in layout compositions.
Additional Notes or Resources 📎
- Styled-system docs: https://styled-system.com/
- Emotion styled API: https://emotion.sh/docs/styled