@livechat/design-system-react-components
TypeScript icon, indicating that this package has built-in type declarations

1.21.1 • Public • Published

LiveChat Design System React Components

npm version react-components Workflow status badge

This package contains a library of reusable React components designed to be used in various projects. These components are the building blocks of our design system and can be easily integrated into your applications.

Installation

Run the following command using npm (or with you other favorite package manager, eg. yarn):

npm install @livechat/design-system-react-components @livechat/design-system-icons --save

Basic usage

It is required to import the CSS directly into your project so it could be applied to components:

import '@livechat/design-system-react-components/dist/style.css';

You can import components directly from the npm package:

import { Button } from '@livechat/design-system-react-components';

In case of icons there is a separate package (@livechat/design-system-icons) to be used in conjunction:

import { Edit } from '@livechat/design-system-icons';
import { Icon } from '@livechat/design-system-react-components';

<Icon source={Edit} kind="primary" />;

Documentation

At this stage of the project we consider Storybook and Figma as parts of our documentation ecosystem.

Storybook - includes design system foundations, describes components API and allows to familiarize with the thier capabilities Figma - it's not an official documentation from design perspective but we follow a simple rule of working in public

Development

Required version of node.js is 16.13.2.

If you're a volta user, the project maintains node version entry within package.json.

You should start with installing dependencies:

npm install

After that just execute the start command. It will build all necessary packages in watch mode. Storybook should start automatically (if not - try visiting http://localhost:6006).

npm start

If Storybook is not enough, you can additionaly run npm start:example which will run example-react package in watch mode. example-react is a simple React app based on vite-react boilterplate. It has a direct dependency on react-components package, so every change should be reflected in the app via auto-reload.

Contributing

For the contribution/testing/releasing guides please refer to the main repository documentation.

/@livechat/design-system-react-components/

    Package Sidebar

    Install

    npm i @livechat/design-system-react-components

    Weekly Downloads

    352

    Version

    1.21.1

    License

    ISC

    Unpacked Size

    804 kB

    Total Files

    172

    Last publish

    Collaborators

    • szotp_lc
    • mrateo
    • l.sajdak
    • otkach-text
    • mszpyruk
    • halinasyposz
    • mpasiewicz
    • tadekrzewuski
    • przemyslawrakowski
    • mwarcholinski
    • naszos
    • w.fabjanczuk
    • p.zawadzka
    • wojciechdudek
    • pastepi
    • artur-livechat
    • joanna.sikora
    • mborowskalivechat
    • kajahd
    • bstopyra
    • m.teczynski
    • jakubpyzio
    • rkawka
    • bolchowka
    • lukiq
    • f.jaskolski
    • msypko
    • bamboo-livechat
    • olek_livechat
    • s.graczyk.livechat
    • michalpaszczakowski
    • andarist
    • konradk
    • k.zajac
    • lkrolak
    • hstaniszewski
    • chatbot-com
    • jakubsikora
    • norbertprocak
    • walaszczykm
    • klarzynskik
    • ale-kacperczyk
    • sambor
    • macpankiewicz
    • mreszke
    • k-kozak
    • bbartek
    • mdebski
    • shwarcu
    • jfedyczak
    • paulinag
    • dzabrzenski
    • wouga
    • mzielonka
    • alithanar
    • msawickilc
    • jawinski
    • gh-actions-livechat
    • oliwiapolec
    • arturfracala
    • panr
    • vbezpalko