diff --git a/change/@fluentui-react-tags-preview-442e431d-b76d-4fec-8243-1737653ffaaf.json b/change/@fluentui-react-tags-preview-442e431d-b76d-4fec-8243-1737653ffaaf.json new file mode 100644 index 00000000000000..cedfdac321663b --- /dev/null +++ b/change/@fluentui-react-tags-preview-442e431d-b76d-4fec-8243-1737653ffaaf.json @@ -0,0 +1,7 @@ +{ + "type": "patch", + "comment": "chore: update props descriptions", + "packageName": "@fluentui/react-tags-preview", + "email": "yuanboxue@microsoft.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-components/react-tags-preview/package.json b/packages/react-components/react-tags-preview/package.json index 29ae98c9ef3f4e..044e6798d19359 100644 --- a/packages/react-components/react-tags-preview/package.json +++ b/packages/react-components/react-tags-preview/package.json @@ -1,7 +1,7 @@ { "name": "@fluentui/react-tags-preview", "version": "0.2.12", - "description": "React components for building web experiences", + "description": "Fluent UI Tag component", "main": "lib-commonjs/index.js", "module": "lib/index.js", "typings": "./dist/index.d.ts", diff --git a/packages/react-components/react-tags-preview/src/components/InteractionTagPrimary/InteractionTagPrimary.types.ts b/packages/react-components/react-tags-preview/src/components/InteractionTagPrimary/InteractionTagPrimary.types.ts index 04a0d6ae49b009..a77eeab82144ba 100644 --- a/packages/react-components/react-tags-preview/src/components/InteractionTagPrimary/InteractionTagPrimary.types.ts +++ b/packages/react-components/react-tags-preview/src/components/InteractionTagPrimary/InteractionTagPrimary.types.ts @@ -8,10 +8,13 @@ export type InteractionTagPrimarySlots = { root: NonNullable>; /** - * Slot for an icon or other visual element + * Slot for a visual element, usually an avatar */ media?: Slot<'span'>; + /** + * Slot for an icon + */ icon?: Slot<'span'>; /** diff --git a/packages/react-components/react-tags-preview/src/components/Tag/Tag.types.ts b/packages/react-components/react-tags-preview/src/components/Tag/Tag.types.ts index 33615ee3b3e973..500c0e499d4ef1 100644 --- a/packages/react-components/react-tags-preview/src/components/Tag/Tag.types.ts +++ b/packages/react-components/react-tags-preview/src/components/Tag/Tag.types.ts @@ -8,10 +8,13 @@ export type TagSlots = { root: NonNullable>; /** - * Slot for an icon or other visual element + * Slot for a visual element, usually an avatar */ media?: Slot<'span'>; + /** + * Slot for an icon + */ icon?: Slot<'span'>; /** @@ -24,6 +27,9 @@ export type TagSlots = { */ secondaryText?: Slot<'span'>; + /** + * Slot for the dismiss icon + */ dismissIcon?: Slot<'span'>; };