@hrc/button
TypeScript icon, indicating that this package has built-in type declarations

3.1.1 • Public • Published

@hrc/button

version bundle size downloads

Simple button components for your React app

Installation

npm install @hrc/button

Usage

import { Button, ButtonIcon, ButtonGroup } from "@hrc/button";
import { Icon } from "@hrc/material-icons";

export function PackageDemo() {
  return (
    <>
      <Button size="large" color="primary" iconEnd={<Icon name="delete" />}>
        Delete
      </Button>
      <ButtonIcon color="error">
        <Icon name="favorite" />
      </ButtonIcon
      <ButtonGroup>
        <Button>One</Button>
        <Button>Two</Button>
        <Button>Three</Button>
        <ButtonIcon>
          <Icon name="search" />
        </ButtonIcon>
      </ButtonGroup>
    </>
  );
}

Documentation

/@hrc/button/

    Package Sidebar

    Install

    npm i @hrc/button

    Weekly Downloads

    3

    Version

    3.1.1

    License

    MIT

    Unpacked Size

    13 kB

    Total Files

    18

    Last publish

    Collaborators

    • hdoc