Improve types

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
This commit is contained in:
Charles de Dreuille
2026-03-04 20:24:12 +00:00
parent 0c772a3223
commit 16d424276a
6 changed files with 53 additions and 32 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ Pass `onPress` and a `label` (used as the accessible name for screen readers) to
### Link
Pass `href` to make the card surface navigate to a URL. The `label` prop is optional but recommended for accessibility when the card content alone may not sufficiently describe the destination.
Pass `href` to make the card surface navigate to a URL. `label` is required — it provides the accessible name for the invisible overlay link read by screen readers.
<Snippet
align="center"
@@ -32,7 +32,7 @@ export const cardPropDefs: Record<string, PropDef> = {
type: 'string',
responsive: false,
description:
'Accessible label announced by screen readers for the interactive overlay. Required when onPress is provided.',
'Accessible label announced by screen readers for the interactive overlay. Required when onPress or href is provided.',
},
...classNamePropDefs,
...stylePropDefs,