Skip to main content
Parsley Design Systems logoParsley Design System - sample

Button

Examples

Primary

Primary buttons stand out the most and are used for the most important actions.

Code

1<Button variation="primary">Submit button</Button>

Secondary

Secondary buttons are still fairly prominent but are used for less important alternatives to the primary action.

Code

1<Button variation="secondary">Submit button</Button>

Tertiary

Tertiary buttons are used for ancillary actions such as viewing terms and conditions and are intentionally much less prominent.

Code

1<Button variation="tertiary">Submit button</Button>

Text

Text styled buttons are available when interactive functionality is required to be inline with paragraph text or other text regions.

Code

1<Button variation="text">Submit button</Button>

Pill

Selected state

Code

1<Button variation="pill" size="small">Submit button</Button>
2
3Selected state
4<Button className="selected" variation="pill" onClick={() => {}}>Submit button</Button>

Full width

Code

1<Button variation="primary" displayWidth="fullWidth">Submit button</Button>

Button sizes

Primary variation

(default)

Secondary variation

(default)

Tertiary variation

(default)

Text variation

(default)

Text Secondary variation

(default)

Pill variation

(default)

Code

1<Button variation="primary" size="small" onClick={() => {}}>Submit button</Button>
2<Button variation="primary" onClick={() => {}}>Submit button</Button>
3<Button variation="primary" size="large" onClick={() => {}}>Submit button</Button>
4<Button variation="primary" size="xlarge" onClick={() => {}}>Submit button</Button>
5
6<Button variation="secondary" size="small" onClick={() => {}}>Submit button</Button>
7<Button variation="secondary" onClick={() => {}}>Submit button</Button>
8<Button variation="secondary" size="large" onClick={() => {}}>Submit button</Button>
9<Button variation="secondary" size="xlarge" onClick={() => {}}>Submit button</Button>
10
11<Button variation="tertiary" size="small" onClick={() => {}}>Submit button</Button>
12<Button variation="tertiary" onClick={() => {}}>Submit button</Button>
13<Button variation="tertiary" size="large" onClick={() => {}}>Submit button</Button>
14<Button variation="tertiary" size="xlarge" onClick={() => {}}>Submit button</Button>
15
16<Button variation="text" size="small" onClick={() => {}}>Submit button</Button>
17<Button variation="text" onClick={() => {}}>Submit button</Button>
18<Button variation="text" size="large" onClick={() => {}}>Submit button</Button>
19<Button variation="text" size="xlarge" onClick={() => {}}>Submit button</Button>
20
21<Button variation="textSecondary" size="small" onClick={() => {}}>Submit button</Button>
22<Button variation="textSecondary" onClick={() => {}}>Submit button</Button>
23<Button variation="textSecondary" size="large" onClick={() => {}}>Submit button</Button>
24<Button variation="textSecondary" size="xlarge" onClick={() => {}}>Submit button</Button>
25
26<Button variation="pill" size="small" onClick={() => {}}>Submit button</Button>
27<Button variation="pill" onClick={() => {}}>Submit button</Button>
28<Button variation="pill" size="large" onClick={() => {}}>Submit button</Button>
29<Button variation="pill" size="xlarge" onClick={() => {}}>Submit button</Button>

Link

Link elementLink elementLink elementLink elementLink element

Code

1<Button variation="primary" href="/">Link element</Button>
2<Button variation="secondary" href="/">Link element</Button>
3<Button variation="tertiary" href="/">Link element</Button>
4<Button variation="text" href="/">Link element</Button>
5<Button variation="pill" href="/">Link element</Button>

Disabled

Code

1<Button variation="primary" disabled>Submit button</Button>
2<Button variation="secondary" disabled>Submit button</Button>
3<Button variation="tertiary" disabled>Submit button</Button>
4<Button variation="text" disabled>Submit button</Button>
5<Button variation="pill" onClick={() => {}} disabled>Submit button</Button>

Loading

Code

1<Button variation="primary" loading>Submit button</Button>
2<Button variation="secondary" loading>Submit button</Button>
3<Button variation="tertiary" loading>Submit button</Button>
4<Button variation="text" loading>Submit button</Button>

With an icon

Code

1<Button variation="primary">
2 Submit button
3 <PlusCircleIcon />
4</Button>
5
6<Button variation="primary">
7 <PlusCircleIcon />
8 Submit button
9</Button>