@hrc/button
v3.1.1
Published
Simple button components for your React app
Downloads
11
Maintainers
Readme
@hrc/button
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>
</>
);
}