0.7.3 • Published 11 months ago

@cerberus-design/icons v0.7.3

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

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: 'neutral',
  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 '@/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

0.6.1-next-91b1e85

12 months ago

0.6.1-next-1315bf2

11 months ago

0.6.1-next-71bb4fd

12 months ago

0.5.2-next-b1fa39d

12 months ago

0.7.2

11 months ago

0.7.1

11 months ago

0.7.3

11 months ago

0.3.2

1 year ago

0.6.1-next-942ab85

12 months ago

0.7.0

11 months ago

0.6.1-next-fb37218

12 months ago

0.6.1-next-f26b422

12 months ago

0.7.2-next-702616b

11 months ago

0.6.1-next-79cd0cd

12 months ago

0.6.1-next-5d5e48c

11 months ago

0.6.1-next-cfd7bc2

12 months ago

0.6.1-next-77438e8

12 months ago

0.4.0

1 year ago

0.6.1-next-0345599

12 months ago

0.5.2-next-6749b70

12 months ago

0.6.1-next-2d28489

11 months ago

0.6.1-next-fa4208e

11 months ago

0.5.2-next-7d39ff1

12 months ago

0.6.1-next-7a79ce5

12 months ago

0.6.1-next-6d6beee

12 months ago

0.5.2-next-b5db70c

12 months ago

0.6.1-next-7e17b25

12 months ago

0.7.1-next-4526b42

11 months ago

0.6.1-next-f9a7124

12 months ago

0.5.2-next-ec0aaab

12 months ago

0.1.0

1 year ago

0.1.1

1 year ago

0.6.1-next-bda4df1

12 months ago

0.5.0

1 year ago

0.5.2-next-f874d5b

12 months ago

0.1.3

1 year ago

0.5.2

1 year ago

0.5.1

1 year ago

0.7.1-next-3f3c232

11 months ago

0.6.0-next-9dc8f7b

12 months ago

0.6.1-next-d7376f1

12 months ago

0.7.4-next-269ab06

11 months ago

0.6.1-next-5baf7c5

11 months ago

0.7.0-next-e86fd39

11 months ago

0.6.1-next-60b9a70

12 months ago

0.7.1-next-f6c0aa5

11 months ago

0.2.0

1 year ago

0.6.1-next-8062b70

11 months ago

0.6.1-next-adb76d4

12 months ago

0.7.3-next-e27eb6c

11 months ago

0.6.1

12 months ago

0.6.0

12 months ago