1.13.0 • Published 1 year ago

@us-gov-cdc/cdc-react v1.13.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

CDC React Component Library

This is a React component library for official CDC sites. At its core, it uses the official USWDS styles. It is written in TypeScript and built with Vite.

General disclaimer This repository was created for use by CDC programs to collaborate on public health related projects in support of the CDC mission. GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.

Using Components

Each component exported in the src/components folder can be used like any other React component. For example, here's how one would use the Button component:

import { Button } from "@us-gov-cdc/cdc-react"

function MyApp() {
  return <Button>Hello, World!</Button>
}

Visit the live Storybook site for props, documentation, and more usage examples for each component.

Running Unit Tests

This project uses Vitest to run unit tests against its components and utilties. Run unit tests with the command yarn test.

Building the Project

This project uses Vite to compile and build the TypeScript. Simply run yarn build to start this process. This will create a dist subdirectory with the production-ready JS code.

1.13.0

1 year ago

1.12.0

1 year ago

1.11.0

1 year ago

1.10.0

1 year ago

1.9.0

1 year ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.0

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.7.2

2 years ago

0.7.1

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago