diff --git a/change/@fluentui-react-card-71e624d4-844c-4bc2-a76e-0b4a2197b530.json b/change/@fluentui-react-card-71e624d4-844c-4bc2-a76e-0b4a2197b530.json new file mode 100644 index 0000000000000..da768793c26b7 --- /dev/null +++ b/change/@fluentui-react-card-71e624d4-844c-4bc2-a76e-0b4a2197b530.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "docs: improve API documentation of card props", + "packageName": "@fluentui/react-card", + "email": "marcosvmmoura@gmail.com", + "dependentChangeType": "patch" +} diff --git a/packages/react-components/react-card/src/components/Card/Card.types.ts b/packages/react-components/react-card/src/components/Card/Card.types.ts index c96c986536b42..18ee8b4eae446 100644 --- a/packages/react-components/react-card/src/components/Card/Card.types.ts +++ b/packages/react-components/react-card/src/components/Card/Card.types.ts @@ -37,7 +37,8 @@ export type CardSlots = { root: Slot<'div'>; /** - * Select element represents a checkbox. + * Floating action that can be rendered on the top-right of a card. Often used together with + * `selected`, `defaultSelected`, and `onSelectionChange` props */ floatingAction?: Slot<'div'>; @@ -71,7 +72,7 @@ export type CardProps = ComponentProps & { appearance?: 'filled' | 'filled-alternative' | 'outline' | 'subtle'; /** - * Sets the focus behavior for the card. If `true`, the card will use the `noTab` focus behavior. + * Sets the focus behavior for the card. * * `off` * The card will not focusable.