0.0.50 • Published 7 months ago

cosmian_ui v0.0.50

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

Welcome to Cosmian UI

Cosmian UI contains a set of React components to create beautiful Cosmian applications.

  • Works with React 17 and 18 application only
  • Written in TypeScript with predictable static types

Components overview

https://cosmian.github.io/cosmian_ui_library

Install

Install Cosmian UI libray in your app using npm or yarn:

npm install cosmian_ui
# or
yarn add cosmian_ui

And import cosmian_ui stylesheets at the top of your main component:

// App.tsx

import "cosmian_ui/style.css";

Usage

Import a component and use it in your app:

import { Button } from "cosmian_ui";

Example with a React app:

import React from "react";
import { Container, Button } from "cosmian_ui";
import "cosmian_ui/style.css";

const App = () => (
  <Container>
    <p>Welcome user</p>
    <Button type="primary" onClick={console.log("Clicked")}>
      Click
    </Button>
  </Container>
);

Developers: create UI components

  • Create new components in src/components.
  • Create dedicated story for each components in src/stories.
  • Run storybook in development mode with npm run storybook.

Publish UI library

  • Upgrade the package version (with npm version patch, npm version minor or npm version major).
  • Build library with npm run build.
  • Publish with npm publish --access=public.
  • Publish storybook with npm run deploy-storybook. On github repository, add an empty .nojekyll file at the root folder.
0.0.50

7 months ago

0.0.46

10 months ago

0.0.47

10 months ago

0.0.48

10 months ago

0.0.49

10 months ago

0.0.43

11 months ago

0.0.44

11 months ago

0.0.45

11 months ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.36

1 year ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.32

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.35

1 year ago

0.0.29

1 year ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.24

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.19

1 year ago

0.0.18

1 year ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago