Skip to content

comicrelief/component-library

Folders and files

NameName
Last commit message
Last commit date
Jan 31, 2025
Aug 19, 2024
Nov 1, 2024
Jun 7, 2019
Jan 31, 2025
Jul 17, 2024
Aug 16, 2024
Sep 2, 2024
Jul 19, 2023
Aug 15, 2022
Jan 15, 2025
Jul 3, 2019
Jul 11, 2024
Jul 23, 2024
Jan 15, 2025
Nov 2, 2023
Jun 28, 2022
Jul 23, 2024

Repository files navigation

Comic Relief React Component Library

GitHub Actions semantic-release

React components to be shared across Comic Relief applications

Use

CR-CL has a dependency of Styled-components.

Install the package

$ yarn add @comicrelief/component-library

Wrap your app with the ThemeProvider and crTheme

import { ThemeProvider, crTheme } from '@comicrelief/component-library';

Import components

import { HeroBanner } from '@comicrelief/component-library';

Develop

To install CR-CL locally, run:

$ yarn install

To start the dev build and server:

$ yarn styleguide

To test:

$ yarn test:unit

Test will run through all Jest tests and watch for any changes on snapshots.

To update snapshots with desired changes brought in through your work:

$ yarn test:unit-update

To publish

$ yarn publish:npm

Testing

Install Playwright:

yarn playwright install

Run the tests

yarn test:e2e:local