@ubie/ubie-ui
TypeScript icon, indicating that this package has built-in type declarations

0.0.17 • Public • Published

Ubie UI (In development)

Ubie UI is a library for distributing components defined in Ubie's design system, Ubie Vitals. It is designed to be implemented in React-based projects.

Components

A list of components can be found on the documentation site. https://vitals.ubie.life/components

Installation

npm install @ubie/ubie-ui

You need to install React and React-DOM as peerDependencies.

npm install react react-dom

Usage

import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from '@ubie/ubie-ui';

function App() {
  return <Button>Ubie Vitals</Button>;
}

ReactDOM.render(<App />, document.querySelector('#app'));

Development

Creating a new component

You can start creating a new component with the following command:

npm run generate

This command will also update the src/index.ts file (it's called a "Barrel") at the same time.

Example

To add a new component named Button:

? Please select the output destination directory. src
? Please enter a component name. Button

🐶 Generated 3 files!

     ✔ src/components/Button/Button.tsx
     ✔ src/components/Button/Button.module.css
     ✔ src/stories/Button.stories.tsx

> @ubie-inc/ofro-elements@0.0.1 generate:barrel
> node ./scripts/barrel.mjs

     ✔ src/index.ts has been updated

License

Ubie UI is licensed under the Apache Apache License, Version2.0.

Readme

Keywords

none

Package Sidebar

Install

npm i @ubie/ubie-ui

Weekly Downloads

166

Version

0.0.17

License

Apache-2.0

Unpacked Size

559 kB

Total Files

325

Last publish

Collaborators

  • hokaccha
  • ubie-admin
  • takanorip
  • monchi