IContributedPill interface
Defines a pill from a contribution
color | Background color for the pill Ignored unless variant is set to Colored If variant is set to Colored and this is not provided, we'll render as Standard and emit a warning to the console |
contribution |
Id of the contribution that the button was defined in (optional, used to resolve relative icon URLs) |
icon | Either a url (relative or fully qualified) or an IContributedIconDefinition with urls for light and dark themes. This allows the caller to use different styles of icons based on the theme type. |
on |
onClick handler for the pill itself |
on |
Renders the remove button if provided Handler to remove the pill |
text | The text to render inside the pill. |
tooltip | Optional value to use as an aria-label and tooltip for the pill. |
Background color for the pill Ignored unless variant is set to Colored If variant is set to Colored and this is not provided, we'll render as Standard and emit a warning to the console
color?: IColor
Property Value
Id of the contribution that the button was defined in (optional, used to resolve relative icon URLs)
contributionId?: string
Property Value
string
Either a url (relative or fully qualified) or an IContributedIconDefinition with urls for light and dark themes. This allows the caller to use different styles of icons based on the theme type.
icon?: string | IContributedIconDefinition
Property Value
string | IContributedIconDefinition
onClick handler for the pill itself
onClick?: () => void
Property Value
() => void
Renders the remove button if provided Handler to remove the pill
onRemoveClick?: () => void
Property Value
() => void
The text to render inside the pill.
text: string
Property Value
string
Optional value to use as an aria-label and tooltip for the pill.
tooltip?: string
Property Value
string