Inline Icon Button
import {InlineIconButton} from "@qualcomm-ui/react/inline-icon-button"Examples
Showcase
Qualcomm
<InlineIconButton icon={X} />Variants
Qualcomm
<InlineIconButton icon={X} />
<div className="bg-persistent-white p-2">
<InlineIconButton emphasis="persistent-black" icon={X} />
</div>
<div className="bg-persistent-black p-2">
<InlineIconButton emphasis="persistent-white" icon={X} />
</div>API
<InlineIconButton>
| Prop | Type | Default |
|---|---|---|
icon * Lucide icon to display inside the button. | | LucideIcon | |
The style variant of the button. Governs color.
TODO: link to design system docs. | | 'neutral' | 'neutral' |
Allows you to replace the component's HTML element with a different tag or component. Learn more | | ReactElement | |
The size of the button and its icon. | | 'sm' | 'md' |
The style variant of the button's icon that controls its size | | 'fixed' | 'fixed' |
icon
*
Type
| LucideIcon
| ReactNode
Description
Lucide icon to display inside the button.
Type
| 'neutral'
| 'persistent-white'
| 'persistent-black'
Description
The style variant of the button. Governs color.
TODO: link to design system docs.
Type
| ReactElement
| ((
props: object,
) => ReactElement)
Description
Allows you to replace the component's HTML element with a different tag or component. Learn more
Type
| 'sm'
| 'md'
| 'lg'
Description
The size of the button and its icon.
Type
| 'fixed'
| 'scale'
Description
The style variant of the button's icon that controls its size
| Attribute / Property | Value |
|---|---|
className | 'qui-inline-icon-button__root' |
data-emphasis | | 'neutral' |
data-scope | 'inline-icon-button' |
data-size | | 'sm' |
data-variant | | 'fixed' |
classNameValue
'qui-inline-icon-button__root'data-emphasisValue
| 'neutral'
| 'persistent-white'
| 'persistent-black'
data-scopeValue
'inline-icon-button'data-sizeValue
| 'sm'
| 'md'
| 'lg'
data-variantValue
| 'fixed'
| 'scale'
Icon
The inner icon element is rendered with the icon passed to the icon prop.
| Attribute / Property | Value |
|---|---|
className | 'qui-inline-icon-button__icon' |
data-emphasis | | 'neutral' |
data-part | 'icon' |
data-scope | 'inline-icon-button' |
data-variant | | 'fixed' |
classNameValue
'qui-inline-icon-button__icon'data-emphasisValue
| 'neutral'
| 'persistent-white'
| 'persistent-black'
data-partValue
'icon'data-scopeValue
'inline-icon-button'data-variantValue
| 'fixed'
| 'scale'
<button>element by default.