Playbook logo
14.18.0

Circle Icon Button

When using Icon Circle Button, the icon must be clear a clear indication of what the button does because there is no text. Icon Circle Buttons take up less space on the page compared to normal buttons. The link variant is used for times you only want to have an icon for a button without having a background.

Summary
Default





Click Handler


Loading





Size


The size prop accepts "sm" as a value to make the Circle Icon Button 20px x 20px instead of the default 40px x 40px size.


Things to Avoid

Never use more than one primary button on a page at any given time.

Available Props

PropsTypeValues

data

object
{ [key: string]: string; }

disabled

enum
true

icon

string

link

string

loading

enum
true

onClick

MouseEventHandler<HTMLElement>
MouseEventHandler<HTMLElement>

newWindow

enum
true

type

enum
"button" | "submit" | "reset"

target

string

variant

enum
"primary" | "secondary" | "link"

size

enum
"sm"