react-figma-plugin-ds
Version:
React ui framework based on Figma design system
58 lines (40 loc) • 1.98 kB
Markdown
[](https://www.npmjs.com/package/react-figma-plugin-ds)
[](https://www.npmjs.com/package/react-figma-plugin-ds)
[](https://www.npmjs.com/package/react-figma-plugin-ds)
React components of Figma design system based on [thomas-lowry/figma-plugin-ds](https://github.com/thomas-lowry/figma-plugin-ds), and implements [UI2: Figma Design System](https://www.figma.com/community/file/768283795272784978).
[](https://alexandrtovmach.github.io/react-figma-plugin-ds/)
Follow these steps to start using React Figma components:
1. Installation:
```sh
npm i react-figma-plugin-ds
yarn add react-figma-plugin-ds
```
2. Usage:
```jsx
import React from "react";
import { Disclosure, Tip, Title, Checkbox, Button } from "react-figma-plugin-ds";
import "react-figma-plugin-ds/figma-plugin-ds.css";
export default (props) => {
return (
<>
<Title size="large" weight="bold">
My plugin
</Title>
<Disclosure label="Getting started" isDefaultExpanded>
<Tip iconName="resolve">Install</Tip>
<Tip iconName="play">Start</Tip>
<Tip iconName="library">Read the docs</Tip>
</Disclosure>
<Checkbox label="I promise to star this repo!" />
<Button>Start</Button>
</>
);
};
```
3. Discover all components with properties on [demo page](https://alexandrtovmach.github.io/react-figma-plugin-ds/). Each of that has playground and as result in top right corner you can easily copy final code.
[](https://github.com/alexandrtovmach/react-figma-plugin-ds/blob/master/LICENSE)