Skip to content

Box primitive #1213

@jsardid

Description

@jsardid

Implement a Box Primitive component. Since this is a primitive component, it shouldn't bring any design opinion with it, other than maybe restrict some prop values to Design System tokens. For this reason, this component should be used carefully, especially once we have higher-level layout components or patterns.

This box component should allow background color customization via props, and will use the background provider internally. Once built, we should be able to deprecate this provider since nobody should need to use a custom div ever again.

Examples:
Braid: https://seek-oss.github.io/braid-design-system/components/Box
Twilio: https://paste.twilio.design/primitives/box

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicjiraThis task is referenced in a story of Jira

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions