0.0.8 • Published 5 years ago

figma-ui-components v0.0.8

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

figma-ui-components

npm version

An unofficial set of Figma UI components for creating plugins and other purposes. Based on Tom Lowry's Figma UI JS/CSS files.

  • Uses React ⚛️, styled-components 💅, TypeScript.
  • Stateful components, fully controlled outside.
  • All components showed at Storybook.

Installation

Install it with yarn:

yarn add figma-ui-components

Or with npm:

npm i figma-ui-components --save

Usage

Global styles

import * as React from 'react'
import {TypographyStyles, BaseStyles} from "figma-ui-components"

const App = () => {
    return <>
        <BaseStyles />
        <TypographyStyles />
        ...
    </>
};

Components

import * as React from 'react'
import {PrimaryButton, SecondaryButton} from "figma-ui-components"

export const Component = () => {
    return <>
        <PrimaryButton onClick={...}>Create</PrimaryButton>
        <SecondaryButton onClick={...}>Cancel</SecondaryButton>
    </>
};

Sponsored

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago