New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@source-protocol-cosmos/sourceblocks

Package Overview
Dependencies
Maintainers
5
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@source-protocol-cosmos/sourceblocks

> Sourceswap verse UI library

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
5
Weekly downloads
 
Created
Source

sourceblocks

Sourceswap verse UI library

NPM JavaScript Style Guide

Install

yarn add sourceblocks

Usage

import React, { Component } from 'react'
import { Button, Text, styled } from 'sourceblocks'

const StyledText = styled(Text, {
  textTransform: 'uppercase',
  // Access internal theme variables using tokens
  padding: '$2 0',
  // read more https://stitches.dev/docs/tokens
  color: '$textColor$success'
})

const Example = () => {
  return (
    <>
      <StyledText variant='hero'>Welcome to sourceblocks!</StyledText>
      <Button
        variant='primary'
        onClick={() => require('source').navigateToTheMoon()}
        css={{ marginTop: '$12' }}
      >
        Join our team here
      </Button>
    </>
  )
}

Storybook

Build sourceblocks locally and preview documented components using storybook.

yarn storybook

Dev mode

This application can be used in dev mode under the yarn link strategy.

For this you can run the following script, this will create a link to your application.

  yarn run link:app --path <path of your app>

Now you can start to code with dev mode

  yarn run dev

The changes you make to this code should be refresh in your application.

For more information visit this link https://classic.yarnpkg.com/en/docs/cli/link

When you finish run the following script to unlink packages

 yarn run unlink:app --path <path of your app>

Contributing

Please submit your suggestions, feature requests or bugs reports to the GitHub Issues.

License

MIT © Source-Protocol-Cosmos

FAQs

Package last updated on 14 Jul 2022

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