Coming from Orbiter, you should be aware of the following changes:
TagGroup
was renamedTagList
.onClear
is not supported.validationState
is not supported. UseisInvalid
instead,
The TagGroup is a dynamic UI component that encapsulates a collection of tags. Each tag, representing a label, category, keyword, or filter, is designed to be used within a TagList for groupings.
Whether the tags are invalid or not.
Whether the required state should be shown as an asterisk or a label, which would display (Optional) on all non required field labels.
A tag can vary in size.
The visual style of the TagGroup.
The inline style for the element.
The children of the component.
The item keys that are disabled. These items cannot be selected, focused, or otherwise interacted with.
The type of selection that is allowed in the collection.
Whether the collection allows empty selection.
The currently selected keys in the collection (controlled).
The initial selected keys in the collection (uncontrolled).
Handler that is called when the selection changes.
The element's unique identifier. See MDN.
The CSS className for the element.
How multiple selection should behave in the collection.
Handler that is called when a user deletes a tag.
Defines a string value that labels the current element.
Identifies the element (or elements) that labels the current element.
Identifies the element (or elements) that describes the object.
Identifies the element (or elements) that provide a detailed, extended description for the object.
A slot name for the component. Slots allow the component to receive props from a parent component.
An explicit null
value indicates that the local props completely override all props received from a parent.
The inline style for the element. A function may be provided to compute the style based on component state.
The contents of the collection.
Item objects in the collection.
Values that should invalidate the item cache when using dynamic collections.
Provides content to display when there are no items in the tag list.
The CSS className for the element. A function may be provided to compute the class based on component state.
Whether the tag is invalid or not.
Whether the tag is loading or not.
The size of the tag.
The visual style of the Tag.
The props of the ClearButton.
The props of the Spinner.
The inline style for the element. A function may be provided to compute the style based on component state.
A unique id for the tag.
A string representation of the tags's contents, used for accessibility. Required if children is not a plain text string.
Whether the tag is disabled.
The children of the component. A function may be provided to alter the children based on component state.
The CSS className for the element. A function may be provided to compute the class based on component state.
A URL to link to. See MDN.
Hints at the human language of the linked URL. SeeMDN.
The target window for the link. See MDN.
The relationship between the linked resource and the current page. See MDN.
Causes the browser to download the linked URL. A string may be provided to suggest a file name. See MDN.
A space-separated list of URLs to ping when the link is followed. See MDN.
How much of the referrer to send when following the link. See MDN.
Options for the configured client side router.
Handler that is called when a hover interaction starts.
Handler that is called when a hover interaction ends.
Handler that is called when the hover state changes.
A TagGroup
uses the following components.
A TagList
uses the following components.
A Tag
uses the following components.
A tag group can contain a label to provide more context to the user.
A tag group can contain a description to provide more information to the user.
Tags can be disabled using the disabledKeys
prop.
If a tag group is invalid, it will display an error message. Displaying this error message will hide the helper message.
Tags can be removed using the onRemove
callback.
If you are using a keyboard, you can press the backspace key to remove a tag.
Tags can be selected using the selectionMode
prop.
Use defaultSelectedKeys
for initially selected items (uncontrolled) and selectedKeys
to manage selected items (controlled).
The selected keys should match the item's id
prop.
A tag group can vary in size.
A tag group can vary in style using the variant
prop. The one seen here is subdued
.
Using the renderEmptyState
prop, you can customize the empty state message when there are no tags.
A tag can be disabled using the isDisabled
prop.
A tag can be set as invalid using the isInvalid
prop.
A tag can vary in size.
A tag can vary in style using the variant
prop.
A tag can have a loading state using the isLoading
prop.
A tag can contain an avatar.
A tag can contain an icon or an icon list.
A tag can contain a count using the Badge
component.
A tag can be a link by using the href
prop on the Tag component. Tags with an href
are not selectable.
A tag can be rendered as a react router link when using the href
prop and setting the navigate
prop on the HopperProvider
.
Coming from Orbiter, you should be aware of the following changes:
TagGroup
was renamed TagList
.onClear
is not supported.validationState
is not supported. Use isInvalid
instead,Coming from Orbiter, you should be aware of the following changes:
Coming from Orbiter, you should be aware of the following changes:
TagList
and TagGroup
.fluid
is not supported.variant
values are now neutral
| subdued
| progress
| positive
| caution
| negative
| option1
| option2
| option3
| option4
| option5
| option6
and not solid
| outline
.validationState
is not supported. Use isInvalid
instead.