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

chaser-components

Package Overview
Dependencies
Maintainers
2
Versions
210
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chaser-components

Chaser HQ Component Library

  • 6.3.9-alpha.2
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-30.77%
Maintainers
2
Weekly downloads
 
Created
Source

chaser-components

Chaser HQ Component Library

NPM JavaScript Style Guide

Install

npm install --save chaser-components

Usage

import * as React from 'react';
import {
  Button,
  Text,
  Heading,
  Icon,
  Box,
  Shelf,
  Stack,
  ButtonGroup,
  Healthscore,
  Tooltip,
  Popover,
  Menu,
  Card,
  LoadingButton,
  Accordion,
} from 'chaser-components';
import 'chaser-components/dist/index.css';

const App = () => {
  return (
    <Box>
      <Heading>
        <Heading>Example of a few Components</Heading>
        <div>
          <Button>A button!</Button>
          <LoadingButton loading={false}>Loading?</LoadingButton>
        </div>
        <Text>Some normal text</Text>
        <Text weight="bold">Some bold text</Text>
        <Text color="Red" size="large" weight="bold">
          Some larger red text
        </Text>
        <Heading>A h1 heading</Heading>
        <Heading color="Mid Neutral 1" size="h3">
          A h3 heading
        </Heading>
        <ButtonGroup>
          <Button intent="danger">Grouped button!</Button>
          <Button appearance="secondary">Grouped button!</Button>
        </ButtonGroup>
        <Shelf>
          <Icon name="check-filled" color="Green" />
          <Icon name="pencil" color="Dark Neutral 1" />
          <Icon name="options" color="Mid Neutral 3" />
          <Icon name="clock" />
          <Icon name="alert-filled" color="Orange" />
          <Icon name="tick" color="Blue" />
          <Icon name="alert-square" color="Green" />
          <Icon name="warning-circle" color="Red" />
          <Icon name="help" color="Mid Neutral 1" />
        </Shelf>
        <Shelf>
          <Healthscore score="56" />
          <Healthscore score={undefined} />
          <Healthscore score={undefined} isProcessing />
          <Healthscore score="100" />
          <Healthscore score="12" />
        </Shelf>
        <Shelf>
          <Text>Large healthscores</Text>
          <Healthscore score="56" size="large" />
          <Healthscore score="2" size="large" />
          <Healthscore score="100" size="large" />
          <Healthscore score={undefined} size="large" />
          <Healthscore score={undefined} size="large" isProcessing />
        </Shelf>
        <div>
          <Tooltip underline content="Hello this is a tooltip!">
            <span>A tooltip!</span>
          </Tooltip>
        </div>
        <div>
          <Tooltip
            position="bottom"
            content="Hello this is a tooltip with lots of contents a tooltip with lots of contents a tooltip with lots of contents a tooltip with lots of contents a tooltip with lots of content!!!!!"
          >
            <span>A tooltip!</span>
          </Tooltip>
        </div>
        <Popover
          onToggle={setMenuOpen}
          shown={menuOpen}
          position={Position.BOTTOM_RIGHT}
          target={
            <Button style={{ padding: 0 }} appearance="minimal" active={menuOpen} icon="options" />
          }
        >
          <Card>
            <Menu>
              <Menu.Label>Label</Menu.Label>
              <Menu.Item>An item!</Menu.Item>
            </Menu>
          </Card>
        </Popover>
      </Stack>
    </Box>
  );
};

export default App;

License

MIT © AshCorah

FAQs

Package last updated on 07 Sep 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