Skip to content

Commit 2542632

Browse files
Julien Bouquillongarronej
andauthored
Update src/Card.tsx
Co-authored-by: Joseph Garrone <joseph.garrone.gj@gmail.com> Signed-off-by: Julien Bouquillon <contact@revolunet.com>
1 parent 4f28dbf commit 2542632

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/Card.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,14 @@ export type CardProps = {
2424
end?: ReactNode;
2525
endDetail?: ReactNode;
2626
badges?: ReactNode[]; // todo: restrict to badge component ? these badges are display on the image
27-
footer?: ReactNode; // where actions can be placed
28-
horizontal?: boolean;
29-
size?: "small" | "medium" | "large"; // only affect the text
30-
enlargeLink?: boolean; // make the whole card clickable
31-
iconId?: FrIconClassName | RiIconClassName; // only needed when enlargeMode=true
27+
/** where actions can be placed */
28+
footer?: ReactNode;
29+
/** only affect the text */
30+
size?: "small" | "medium" | "large";
31+
/** make the whole card clickable */
32+
enlargeLink?: boolean;
33+
/** only needed when enlargeMode=true */
34+
iconId?: FrIconClassName | RiIconClassName;
3235
shadow?: boolean;
3336
background?: boolean;
3437
border?: boolean;
@@ -57,7 +60,9 @@ export type CardProps = {
5760
} & (CardProps.Default | CardProps.Horizontal);
5861

5962
export namespace CardProps {
60-
export type Default = {};
63+
export type Default = {
64+
horizontal?: never;
65+
};
6166

6267
export type Horizontal = {
6368
horizontal: true;

0 commit comments

Comments
 (0)