New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cosmian_ui

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cosmian_ui

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

latest
npmnpm
Version
0.0.50
Version published
Weekly downloads
15
-40%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 12 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts