We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7282806 + 7bfe50c commit c6ea749Copy full SHA for c6ea749
src/Card.tsx
@@ -57,16 +57,24 @@ export type CardProps = {
57
string
58
>
59
>;
60
-} & (CardProps.Default | CardProps.Horizontal);
+} & (CardProps.Default | CardProps.Horizontal) &
61
+ (CardProps.EnlargedLink | CardProps.NotEnlargedLink);
62
63
export namespace CardProps {
64
export type Default = {
65
horizontal?: never;
66
};
-
67
export type Horizontal = {
68
horizontal: true;
69
70
+ export type EnlargedLink = {
71
+ enlargeLink: true;
72
+ iconId?: FrIconClassName | RiIconClassName;
73
+ };
74
+ export type NotEnlargedLink = {
75
+ enlargeLink?: false;
76
+ iconId?: never;
77
78
}
79
80
/** @see <https://react-dsfr-components.etalab.studio/?path=/docs/components-alert> */
0 commit comments