Coming from Orbiter, you should be aware of the following changes:
checked
has been renamedisSelected
.defaultChecked
has been renameddefaultSelected
.value
has been removed, use theid
instead.
A tile groups information into an interactive element to let users browse and take action on a group of related items.
<Tile> <Heading /> /* (Optional) The heading of the Tile */ <Content /> /* (Optional) The content of the Tile, but required if any other elements are present */ <Image /> /* (Optional) The image of the Tile */ <Illustration /> /* (Optional) The illustration of the Tile */ </Tile>
A Tile
uses the following components:
To facilitate the migration process, we've provided layout samples as reference guides. These examples demonstrate how to recreate features previously supported in Orbiter.
A tile consists of minimally some content.
A tile can have an image.
Or an illustration with a background color.
A tile can be selected.
A tile can be read-only.
A tile can be disabled.
A tile can render horizontally.
A tile can handle isSelected
state in controlled mode.
Tiles are always used in groups. Similarly to Radio, they should:
Unlike Radio, it is not mandatory for Tiles to have a default option selected.
The id of the Tile, matching the values used in TileGroup's selectedKeys
prop.
Whether or not the Tile is read-only.
The axis the Tile should align with.
The inline style for the element. A function may be provided to compute the style based on component state.
The children of the component. A function may be provided to alter the children based on component state.
Whether the element should be selected (controlled).
Whether the element should be selected (uncontrolled).
Whether the button is disabled.
Whether the element should receive focus on render.
The CSS className for the element. A function may be provided to compute the class based on component state.
Handler that is called when the element's selection state changes.
Handler that is called when the press is released over the target.
Handler that is called when a press interaction starts.
Handler that is called when a press interaction ends, either over the target or when the pointer leaves the target.
Handler that is called when the press state changes.
Handler that is called when a press is released over the target, regardless of whether it started on the target or not.
Not recommended – use onPress
instead. onClick
is an alias for onPress
provided for compatibility with other libraries. onPress
provides
additional event details for non-mouse interactions.
Handler that is called when the element receives focus.
Handler that is called when the element loses focus.
Handler that is called when the element's focus status changes.
Handler that is called when a key is pressed.
Handler that is called when a key is released.
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 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.
Indicates whether the element is disabled to users of assistive technology.
Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.
Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.
Identifies the element (or elements) whose contents or presence are controlled by the current element.
Indicates the current "pressed" state of toggle buttons.
Whether to prevent focus from moving to the button when pressing it.
Caution, this can make the button inaccessible and should only be used when alternative keyboard interaction is provided, such as ComboBox's MenuTrigger or a NumberField's increment/decrement control.
Whether to exclude the element from the sequential tab order. If true, the element will not be focusable via the keyboard by tabbing. This should be avoided except in rare scenarios where an alternative means of accessing the element or its functionality via the keyboard is available.
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.
Coming from Orbiter, you should be aware of the following changes:
checked
has been renamed isSelected
.defaultChecked
has been renamed defaultSelected
.value
has been removed, use the id
instead.