Skip to content
Somewhere design system

Actions

Button

The call to action. Always pill-shaped, with a soft green outline and semibold DM Sans.

import { Button } from "@somewhere-com/ds";

<Button variant="primary" size="large">Start Hiring Now</Button>
<Button variant="secondary" href="/contact">Book a call</Button>
<Button variant="tertiary" size="small">Learn more</Button>

Props

With an icon

import { ArrowRightIcon, Icon } from "@somewhere-com/icons";

<Button>
  Start Hiring Now
  <Icon icon={ArrowRightIcon} />
</Button>;

Children are spaced with space.small (1rem). Put the icon before or after the label. It’s 1em, so it scales with the button’s text. Keep the icon decorative: the label names the action. Give an icon-only button an aria-label.

States

Accessibility

Do and don’t

Examples

Rendered from the Storybook stories. To change props and see every state live, open Button in Storybook.

Variants
Sizes
As Link
With Icon
Animated Text