Give each item a value, a picture, a label, and the open text.
The sample also uses Image. One command adds them with this item:
trip-days.tsx
ExpandOnHover
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| rounded | "default""full" | "default" | |
| orientation | "auto""horizontal""vertical" | "auto" | auto (the default): a row while each closed strip is at least 44px wide, else a column of bands, as on a phone (a tap opens one band, which grows down). horizontal and vertical keep one layout. A column is at least 44px per closed band tall, whatever its height class. |
| value | string | null | — | The open item (controlled). null: no item is open, and all items share the row evenly. |
| default | string | null | null | The open item at first (uncontrolled). Default null. |
| on | — | Called when hover, focus, or a tap opens another item, with the Base UI change details (reason "none": the hover intent opens it after its rest, not on an event of its own). | |
| open | number | 5 | How many closed items the open item is as wide (or tall) as. Default 5. |
| disabled | boolean | false | No item opens; the open item stays open. |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ExpandOnHoverItem
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | The value that names this item in value, defaultValue, and onValueChange. |
| disabled | boolean | false | This item never opens and leaves the Tab order. |
From Base UIUseRenderBase UI docs | |||
| render | — | Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render. | |
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ExpandOnHoverMedia
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ExpandOnHoverLabel
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
ExpandOnHoverContent
<div>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <div> attributes | — | Every other attribute goes to the <div>, with a ref. |
| Tab | Moves to the next strip and opens it. |
|---|---|
| EnterorSpace | Opens the focused strip. On a link strip, Enter follows the link. |









