Debian Codegraph @

node/@patternfly/react-core/dist/esm/components/Card/CardHeader.d.ts

raw
1 /// <reference types="react" />
2 export interface CardHeaderActionsObject {
3 /** Actions of the card header */
4 actions: React.ReactNode;
5 /** Flag indicating that the actions have no offset */
6 hasNoOffset?: boolean;
7 /** Additional classes added to the actions wrapper */
8 className?: string;
9 }
10 export interface CardHeaderSelectableActionsObject {
11 /** Determines the type of input to be used for a selectable card. */
12 variant?: 'single' | 'multiple';
13 /** Flag indicating that the actions have no offset */
14 hasNoOffset?: boolean;
15 /** Additional classes added to the selectable actions wrapper */
16 className?: string;
17 /** Custom ID passed to the selectable card's input or a clickable-only card's button/anchor.
18 * If omitted, a random unique ID will be assigned to a selectable card's input. */
19 selectableActionId?: string;
20 /** Adds an accessible name to the input of a selectable card or clickable button/anchor of a clickable-only card.
21 * This or selectableActionAriaLabelledby is required for clickable-only cards.
22 */
23 selectableActionAriaLabel?: string;
24 /** A single or list of space-delimited ID's that provide an accessible name to the input of a selectable card
25 * or clickable button/anchor of a clickable-only card. This or selectableActionAriaLabelledby is required
26 * for clickable-only cards.
27 */
28 selectableActionAriaLabelledby?: string;
29 /** Callback for when a selectable card input changes */
30 onChange?: (event: React.FormEvent<HTMLInputElement>, checked: boolean) => void;
31 /** Action to call when a clickable-only card is clicked. This cannot be combined with the to prop. */
32 onClickAction?: (event: React.MouseEvent) => void;
33 /** Link to navigate to when a clickable-only card is clicked. This cannot be combined with the onClickAction prop. */
34 to?: string;
35 /** Additional props spread to a selectable card input or clickable-only card's button/anchor. */
36 selectableActionProps?: any;
37 /** Flag to indicate whether a clickable-only card's link should open in a new tab/window. */
38 isExternalLink?: boolean;
39 /** Name for the input element of a selectable card. */
40 name?: string;
41 /** @deprecated Flag indicating whether the selectable card input is checked. We recommend using
42 * the isSelected prop on the card component instead.
43 */
44 isChecked?: boolean;
45 /** Flag indicating the action is hidden */
46 isHidden?: boolean;
47 }
48 export interface CardHeaderProps extends React.HTMLProps<HTMLDivElement> {
49 /** Content rendered inside the card header */
50 children?: React.ReactNode;
51 /** Additional classes added to the card header */
52 className?: string;
53 /** Actions of the card header */
54 actions?: CardHeaderActionsObject;
55 /** Selectable actions of the card header */
56 selectableActions?: CardHeaderSelectableActionsObject;
57 /** ID of the card header. */
58 id?: string;
59 /** Callback expandable card */
60 onExpand?: (event: React.MouseEvent, id: string) => void;
61 /** Additional props for expandable toggle button */
62 toggleButtonProps?: any;
63 /** Whether to right-align expandable toggle button */
64 isToggleRightAligned?: boolean;
65 /** Flag indicating that header wrapping is enabled */
66 hasWrap?: boolean;
67 }
68 export declare const CardHeader: React.FunctionComponent<CardHeaderProps>;
69 //# sourceMappingURL=CardHeader.d.ts.map