From fa23437a875c36e9acc2bff95d4c959ac50c9682 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Sun, 15 Mar 2026 09:02:29 +0000 Subject: [PATCH] Update components.tsx Signed-off-by: Charles de Dreuille --- .../app/components/list-box/components.tsx | 44 +++++++++++++++++-- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/docs-ui/src/app/components/list-box/components.tsx b/docs-ui/src/app/components/list-box/components.tsx index 9db1ea57f3..ce0e0a9f03 100644 --- a/docs-ui/src/app/components/list-box/components.tsx +++ b/docs-ui/src/app/components/list-box/components.tsx @@ -4,16 +4,32 @@ import { ListBox, ListBoxItem, } from '../../../../../packages/ui/src/components/ListBox/ListBox'; +import { MenuItem } from '../../../../../packages/ui/src/components/Menu/Menu'; +import { + TagGroup, + Tag, +} from '../../../../../packages/ui/src/components/TagGroup/TagGroup'; import { useState } from 'react'; import type { Selection } from 'react-aria-components'; import { RiJavascriptLine, RiReactjsLine, - RiRustLine, + RiShipLine, RiTerminalLine, RiCodeLine, + RiDeleteBinLine, + RiEdit2Line, + RiShareBoxLine, } from '@remixicon/react'; +const itemTags: Record = { + react: ['frontend', 'ui'], + typescript: ['typed', 'js'], + javascript: ['web'], + rust: ['systems', 'fast'], + go: ['backend'], +}; + const items = [ { id: 'react', label: 'React' }, { id: 'typescript', label: 'TypeScript' }, @@ -54,14 +70,34 @@ const itemIcons: Record = { react: , typescript: , javascript: , - rust: , + rust: , go: , }; export const Default = () => ( - + {items.map(item => ( - + + }>Edit + }>Share + } color="danger"> + Delete + + + } + customActions={ + + {itemTags[item.id].map(tag => ( + {tag} + ))} + + } + > {item.label} ))}