Icon Button

Displays a ghost button used with an icon.

asChild

boolean

color

grayredpurplegreen

fullyDisabled

boolean

By default, the `disabled` prop will use the `aria-disabled` attribute to ensure that content remains focusable and accessible even when in a disabled state. If you are sure you want to disable the button and take measures to ensure its accessibility, you can set this prop to `true` to use the `disabled` attribute instead.

loading

boolean

size

123

Deprecated

state

deprecated
disablednormalloading

Also supports MarginProps: `m`, `mb`, `ml`, `mr`, `mt`, `mx`, `my`

Make sure to use a tooltip to provide an accessible label to the button.

Use the color prop to control the color of the button.

Use the size prop to control the size of the button.

A button can represent different types of state that may or may not be mutually exclusive. Most of these can be represented by props inherited from the button element, such as disabled and readOnly.

Use the loading prop to indicate that the button is in a loading state. When loading is true, the button is disabled whether or not the disabled prop is set.

When button changes to a loading state, screen readers announce “Loading, please wait.”

Loading and disabled buttons are focusable for accessibility reasons, but can’t be clicked and don’t submit forms.

Dashboard

8 variants found

size 2 iconbutton in Edit Brandingdashboard

/branding/edit

size=2
size 2 iconbutton in Members Tabledashboard
size=2
size 1 iconbutton in Add Child Buttondashboard

/:environmentId/roles-and-permissions/resource-types/edit/editable-resource-types-graph

color=graysize=1
size 1 iconbutton in Close Buttondashboard
color=graysize=1
size 1 iconbutton in Flag Environment Carddashboard
size=1
size 1 iconbutton in Flag Environment Carddashboard
size=1
IconButton in Authkit Setup Prompt Carddashboard
color=gray
IconButton in Client Secretsdashboard

/:environmentId/applications/:applicationId

color=gray

Admin Portal

2 variants found

IconButton in Recording List Viewadmin-portal
IconButton in Headeradmin-portal

Context

PropTypeDefaultRequired
asChild
booleanno
color
"gray" | "red" | "purple" | "green"no
fullyDisabled
booleanno
loading
booleanno
size
"1" | "2" | "3"no
statedeprecated
"disabled" | "normal" | "loading"no

Also supports MarginProps: m, mb, ml, mr, mt, mx, my

stateType: "disabled" | "normal" | "loading"

Usage

Used 93 times across 2 packages

Dashboard
72
Admin Portal
21

Variant Distribution

size

1
88%
2
12%

color

gray
100%

Where it's used

76 files

/branding/edit

packages/dashboard/src/app/(private)/(chromeless)/branding/edit/edit-branding.tsx3
packages/dashboard/src/app/(private)/(chromeless)/branding/edit/custom-element-accordion.tsx2

/:environmentId/roles-and-permissions/resource-types/resource-types-graph

packages/dashboard/src/app/(private)/(sidebar)/[environmentId]/roles-and-permissions/resource-types/resource-types-graph/zoom-controls.tsx3
packages/admin-portal/src/admin-portal-debugger/navigation.tsx3
packages/dashboard/src/components/ai-chat/chat-header.tsx2
packages/dashboard/src/components/ai-chat/message-feedback.tsx2
packages/dashboard/src/components/date-input-picker.tsx2
packages/dashboard/src/components/flags/flag-environment-card.tsx2
packages/dashboard/src/components/organizations/upsert-organization-dialog.tsx2
packages/dashboard/src/components/radar/configuration-page/dialogs/restricted-list-field.tsx2

Show 66 more files