Make clear ActionList.Item's `trailingIcon` can be a component
See original GitHub issueThe component props of ActionList.Item
suggest that trailingIcon can be either an icon or similar.
/**
* Icon (or similar) positioned after `Item` text.
*/
trailingIcon?: React.FunctionComponent<IconProps>
Would a Label
be considered appropriate usage for this? If so, should we update props to allow more generic usage?
In addition to this, leadingVisual
has the same definition but it’s name (“Visual”) suggest a more generic usage, I’m wondering if this differentiation in name is still appropriate.
/**
* Icon (or similar) positioned before `Item` text.
*/
leadingVisual?: React.FunctionComponent<IconProps>
In effect, this is what I’m envisioning:
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
How To Create an Action Items List (Action Items Template)
If it's clear, concise and communicable, phrased in a way that allows you to complete the task in a small number of steps,...
Read more >How to clear textfield value in Jetpack Compose?
You can use the trailingIcon attribute with a custom clickable modifier. Something like: var text by rememberSaveable { mutableStateOf("") } ...
Read more >Composite components / ActionMenu / examples - Mixed Selection ...
In this list, there is a ActionList.Group with single selection for picking one option, followed by a Item that is an action. This...
Read more >@primer/components | Yarn - Package Manager
- Revert first item focus fix for ActionList components. 28.2.2. Patch Changes. 68877076 #1275 Thanks @VanAnderson! - data props can be used in...
Read more >A Quick Guide to Action Items & Action Item Lists
In order to make these abstract tasks more manageable, the project manager will break them into distinct action items. These are easier for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
👍 to
trailingVisual
for consistency with existing docs and other props. Also, we’re currently treating that prop withIconProps
- I think we should update that as well to reflect a more generic usage?Implemented in https://github.com/primer/react/pull/1521 / v31.0.1 😃