✨ COSMO: Croissant On-Site Message Options
This repo contains our React.js component library for retailers.
Scripts
To run locally:
yarn install && yarn run storybook
Technologies
- Storybook
- React
- Sass
- Typescript
- Jest
Component File Structure
Components are located in the src/components/merchant-components
folder.
Each component contains 3 files:
-
Component.tsx
- The React component that can be exported and used on the retailer side -
Component.module.css
- The component-specific styling -
Component.stories.mdx
- The MDX documentation, viewable on the component'sDoc
tab in Storybook.
Other File Structure within /src
-
api/mocks
- Mock API data for use within Storybook example components -
api/product
- API fetch call -
assets
- Containsimages
andlogos
folders -
helpers
- Contains helper functions for updating cookies. -
introduction
MDX documentation about our Storybook component library. -
scss
- Containsvariables.scss
andglobal.scss
which import our Google Fonts. -
utilities
- Contains thetypes
folder
Storybook Component Library
Visit our Storybook web app that allows developers, designers, PMs, and other stakeholders to check if the UI looks right without touching code or requiring a local dev environment.
Next Up
- API integration
- Export as Shopify App
- Document A11y standards
- Implement i18n compatibility
- Unit testing with Jest
- Updates to ESLint/Prettier config