Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stackpath/cosmos-react-components

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackpath/cosmos-react-components

React specific wrappers for Cosmos Web Components

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Cosmos React Components

Note: This project is pre-alpha and should not be used in a production environment.

Cosmos is the name of StackPath's Design System.

This package is a set of React wrapper components around the Cosmos Web Components package.

Installation

To install the React component bindings:

npm install @stackpath/cosmos-react-components

Usage

The package will automatically define the underlying Custom Elements in your project, so you don't need to do it manually.

Import a component:

import { CosmosButton } from '@stackpath/cosmos-react-components/dist'

Use the component in your JSX:

<main>
    <CosmosButton type='primary' label='Primary Button' icon='check' onClick={(event) => console.log('Clicked primary button')} />
</main>

FAQs

Package last updated on 19 May 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc