Displays a clickable button element.
asChildcolorgrayghostfalsehighContrastloadingfalseradiussizetypebuttonstateAlso supports MarginProps: `m`, `mb`, `ml`, `mr`, `mt`, `mx`, `my`
<Button radius="small" size="1">Button</Button>
The state prop is deprecated, as the types of state it represents may not be mutually exclusive. Use disabled or loading instead.
Use the loading prop to indicate that the button is in a loading state. When loading is true the button is disabled by default.
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.
You may nest icons directly inside the buttons. The correct gap between the icon and the text is provided automatically.
15 variants found
/:environmentId/applications/:applicationId
/:environmentId/authentication/oauth-providers
/:environmentId/applications/:applicationId
/:environmentId/log-streams/:logStreamId
/:environmentId/roles-and-permissions/resource-types/edit/content-panel
<Flex align="center" gap="2" justify="between">
<Flex align="center" gap="2">
<Label as="span">Parents</Label>
<Tooltip
content={
<span style={{ maxWidth: 160, display: 'block' }}>
This resource type can be assigned to any of the selected
parents.
</span>
}
>
<Flex asChild align="center">
<span>
<InfoCircledIcon
color="var(--gray-9)"
height={14}
width={14}
/>
</span>
</Flex>
</Tooltip>
</Flex>
<Combobox.Anchor>
<Combobox.Trigger disabled={!hasAvailableParentsToAdd}>
<Button
ghost
color="purple"
disabled={!hasAvailableParentsToAdd}
size="1"
style={{ margin: 0 }}
{...(open ? { 'data-state': 'open' } : {})}
>
<PlusIcon />
Add parent
</Button>
</Combobox.Trigger>
</Combobox.Anchor>
</Flex>Also supports MarginProps: m, mb, ml, mr, mt, mx, my
stateType: "disabled" | "normal" | "loading"Used 1021 times across 2 packages
color
ghost
size
disabled
radius
loading
504 files
/:environmentId/authentication
Show 494 more files