@channel.io/bezier-react
v1.21.0
Published
React components library that implements Bezier design system.
Readme
Bezier React
Bezier React is a React components library that implements Bezier design system.
Installation
npm
npm i @channel.io/bezier-react styled-components@5
npm i -D @types/styled-components@5yarn
yarn add @channel.io/bezier-react styled-components@5
yarn add -D @types/styled-components@5pnpm
pnpm install @channel.io/bezier-react styled-components@5
pnpm install -D @types/styled-components@5bezier-react has styled-components as peer dependency so don't forget to install it.
Usage
- Wrap
BezierProviderat the root of your application. - Pass the
foundationvalue likeLightFoundationorDarkFoundation.
import React from 'react'
import { createRoot } from 'react-dom/client'
import { BezierProvider, LightFoundation, Text } from '@channel.io/bezier-react'
const container = document.getElementById('root') as HTMLElement
const root = createRoot(container)
root.render(
<BezierProvider foundation={LightFoundation}>
<Text as="h1">Hello World</Text>
</BezierProvider>,
)Contributing
See contribution guide.
Maintainers
This package is mainly contributed by Channel Corp. Although feel free to contribution, or raise concerns!
