WelcomeBasic ConceptsGetting StartedElementsButtonDataGridIcons

Button

import { Button } from '@cozmos-ui/button';

Variants

Priority

Sizing

Disabled State

Props

NameTypeRequiredDefaultDescription
aselementTypeNo'button'The element or component used to replace the default. E.g. `'a' | GatsbyLink | NextLink`. Note: All remaining props will be passed through to the component.
priorityenumNo1Creates a visual heirarchy with `1` being the most prominent
sizestringNo'md'Modify `theme.buttons` to override default variants. Default variants: `sm` | `md` | `lg`
variantstringNo'primary'Maps to `theme.colors`