Skip to content

[React] Create Box component in shared UI component library #668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
georgewrmarshall opened this issue May 15, 2025 · 0 comments · May be fixed by #707
Open

[React] Create Box component in shared UI component library #668

georgewrmarshall opened this issue May 15, 2025 · 0 comments · May be fixed by #707
Assignees

Comments

@georgewrmarshall
Copy link
Contributor

georgewrmarshall commented May 15, 2025

Description

Create a reusable Box component for the shared UI component library. This task is part of the migration to the new shared UI component library, ensuring consistency with the conventions set by existing components.

Technical Details

  • Component Implementation:

    • Build using React and TypeScript.
  • Integration:

    • Ensure compatibility with twrnc or any relevant design system tokens (e.g., spacing, colors, typography).
  • Testing:

    • Integrate unit tests using Jest and React Testing Library.
    • Add accessibility tests to ensure ARIA compliance for keyboard and screen reader users.
  • Documentation:

    • Provide detailed usage examples for different variants, sizes, and states.
    • Include a storybook story for each prop and for default configurations.

Acceptance Criteria

  • Component implementation must cover the following:
    • Proper alignment with typography and spacing standards.
    • Compatibility with all design system color tokens and themes.
    • Inclusion of hover, focus, and active states.
  • Unit tests must cover at least 80% of the component’s functionality, including interactivity and accessibility.
  • Component must be reviewed and approved by both engineering and design teams.
  • Documentation for the component should be added, covering usage, available props, and examples.
  • Ensure all aspects meet the Definition of Done.

References

@brianacnguyen brianacnguyen changed the title Box component [DSR] Create Box component in shared UI component library May 28, 2025
@brianacnguyen brianacnguyen changed the title [DSR] Create Box component in shared UI component library [React] Create Box component in shared UI component library May 28, 2025
@brianacnguyen brianacnguyen linked a pull request May 28, 2025 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants