@kui-shell/plugin-client-common
Version:
Kui plugin that offers stylesheets
36 lines (35 loc) • 1.53 kB
TypeScript
import { ReactNode } from 'react';
import type { Tab } from '@kui-shell/core';
import { DropDownAction } from '../DropDown';
interface Props {
/** tab identifier, which helps e.g. contained Editors maintain sizing as tab layout changes */
tab?: Tab;
/** Place the given header node at the top of the Card */
header?: ReactNode;
/** Place the given footer node at the bottom of the Card */
footer?: ReactNode;
/** Content rendered inside the CardTitle */
title?: string;
/** Place the given icon image at the top of the Card */
icon?: string;
/** Body of the Card. If given a string, it will be passed through as the source <Markdown source="..." /> */
children: string | ReactNode;
/** Base HTTP Url? */
baseUrl?: string;
titleInHeader?: boolean;
/** [Optional] Display body in header? */
bodyInHeader?: boolean;
/** [Optional] Overflow menu actions; rendered in the upper right corner */
actions?: DropDownAction[];
/** [Optional] Options to be rendered in the upper right corner (not in an overflow menu) */
inlineActions?: ReactNode[];
/** [Optional] CSS class to associate with the outermost Card element */
className?: string;
/** [Optional] CSS class to associate with the Card footer */
footerClassName?: string;
/** [Optional] Card onClick handler */
onCardClick?: (evt: React.MouseEvent) => void;
/** [Optional] Use standard box-shadow (default: no box-shadow) */
boxShadow?: boolean;
}
export default Props;