@automattic/components
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Components

A library of React components designed for use in Automattic products.

Installation

Install the components and the color schemes they depend on.

yarn add @automattic/components @automattic/calypso-color-schemes

Usage

// import the color variables - you only need to do this once in your entire application
import '@automattic/calypso-color-schemes';

// import the component you wish to use
import { Button } from '@automattic/components';

const CallToAction = () => (
	<>
		<Button primary onClick={ () => alert( 'Thank you for taking action!' ) }>
			Take action now!
		</Button>
	</>
);

Development Workflow

This package is developed as part of the Calypso monorepo. Run yarn in the root of the repository to get the required devDependencies.

Tests

yarn run test-packages

yarn run test-packages:watch

Using Storybook

To see stories within this package, run yarn workspace @automattic/components run start-storybook.

To see all stories within this repository, run yarn storybook:start at the root of the repository.

Readme

Keywords

none

Package Sidebar

Install

npm i @automattic/components

Weekly Downloads

6,959

Version

2.1.0

License

GPL-2.0-or-later

Unpacked Size

2.93 MB

Total Files

1359

Last publish

Collaborators

  • porada
  • imranh920
  • gmjuhasz
  • rcarvalho
  • briowill
  • bgrgicak
  • dhenridev
  • daledupreez-a8c
  • jeherve
  • yuliyan
  • micbosia8c
  • jeremy.yip
  • wpvip-bot
  • etobiesen
  • kzoschke
  • brunobasto
  • kat3samsin
  • fmfernandes
  • newspack
  • robertsreberski_a8c
  • msurdi-a8c
  • chihsuan
  • manzoorwanijk
  • rjchow
  • andrea-sdl
  • scjr
  • spsiddarthan
  • t2dw4t
  • ehg_
  • wwa
  • sirreal
  • elazzabi
  • royho
  • luismulinari
  • macbre
  • mjangda
  • matticbot
  • a8c
  • blowery
  • noahtallen
  • hanifn
  • sgomes
  • tyxla
  • saroshaga
  • parkcityj
  • nejclovrencic
  • sirbrillig
  • chriszarate
  • robersongomes
  • johngodley