This is the official icon library for the Cerberus design system for React.
pnpm add @cerberus-design/icons
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>
);
};
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