@@ -70,7 +70,7 @@ props (ARIA attributes, click and keyboard handlers) to spread.
7070### Items
7171
7272` label ` names the item for typeahead and for assistive technology. What the row shows is composed
73- from ` Menu.Media ` and ` Menu.Label ` , and those children are required: text dropped straight into the
73+ from ` Menu.Media ` , ` Menu.Label ` and ` Menu.Indicator ` , and those children are required: text dropped straight into the
7474item is not a flex child the row can size, so it neither lines up with the other rows nor
7575truncates. A row with nothing to lead it is ` Menu.Label ` alone. Use
7676` color='negative' ` for destructive actions; the color is inherited by the children. ` disabled ` items
@@ -121,7 +121,13 @@ line. Items whose text is a name — an account, an organization — need it mos
121121the menu instead of ellipsing. It is also what pushes a trailing mark to the end of the row. Use it
122122for every composed item, so rows built from parts all read the same.
123123
124- The two together are the whole of a row that leads with an avatar and trails with a check:
124+ ### Indicator
125+
126+ ` Menu.Indicator ` is a square trailing column for a mark at the end of the row, such as a check or a
127+ spinner. It keeps its width while empty, so render it on any item whose mark can appear later and
128+ the label does not shift when it does.
129+
130+ Together they make a row that leads with an avatar and trails with a check:
125131
126132``` tsx
127133<Menu.Item label = ' colin@clerk.dev' >
@@ -134,7 +140,9 @@ The two together are the whole of a row that leads with an avatar and trails wit
134140 </Avatar.Root >
135141 </Menu.Media >
136142 <Menu.Label >colin@clerk.dev</Menu.Label >
137- <Icon glyph = { Checkmark } size = ' sm' />
143+ <Menu.Indicator >
144+ <Icon glyph = { Checkmark } size = ' sm' />
145+ </Menu.Indicator >
138146</Menu.Item >
139147```
140148
0 commit comments