Skip to content

socraft-public/socraft-ui

Repository files navigation

socraft-ui

socraft's components library

Installation

with npm

  cd my-project
  npm install socraft-ui

with yarn

  cd my-project
  yarn add socraft-ui

Create a component

npm run create -- <component-name>
# Please use PascalCase for the component name

Documentation

Once installed, it is very easy to use the components

import { Button } from "socraft-ui";

function myComponent() {
  return <Button variant="yellow">I'm a button !</Button>;
}

View all components