@cerberus-design/icons
TypeScript icon, indicating that this package has built-in type declarations

0.7.3 • Public • Published

Icons

This is the official icon library for the Cerberus design system for React.

Installation

pnpm add @cerberus-design/icons

Usage

import { Add } from '@cerberus-design/icons';
import { IconButton, createIconButtonProps } from '@cerberus-design/react';

// An optional helper to manage a11y for the IconButton
const iconBtnProps = createIconButtonProps({
  label: 'Add to order',
  palette: 'page',
  size: 'lg',
});

function App() {
  return (
    <IconButton {...iconBtnProps.btn}>
      <Add {...iconBtnProps.icon} />
    </IconButton>
  );
};

Usage without the React library

import { Add } from '@cerberus-design/icons';
import { iconButton } from '@cerberus-design/styled-system/recipes';

function App() {
  return (
    <button aria-label="Add to order" className={iconButton()}>
      <Add aria-hidden />
    </button>
  );
};

Copyright (c) 2024 Digital University, All Rights Reserved

Package Sidebar

Install

npm i @cerberus-design/icons

Weekly Downloads

2

Version

0.7.3

License

ISC

Unpacked Size

622 kB

Total Files

12

Last publish

Collaborators

  • pcleveland
  • leighton-tidwell
  • bahull
  • caseybaggz-og