diff --git a/src/Card.tsx b/src/Card.tsx index 496059beb..5ccd87b57 100644 --- a/src/Card.tsx +++ b/src/Card.tsx @@ -57,16 +57,24 @@ export type CardProps = { string > >; -} & (CardProps.Default | CardProps.Horizontal); +} & (CardProps.Default | CardProps.Horizontal) & + (CardProps.EnlargedLink | CardProps.NotEnlargedLink); export namespace CardProps { export type Default = { horizontal?: never; }; - export type Horizontal = { horizontal: true; }; + export type EnlargedLink = { + enlargeLink: true; + iconId?: FrIconClassName | RiIconClassName; + }; + export type NotEnlargedLink = { + enlargeLink?: false; + iconId?: never; + }; } /** @see */