@octopusdeploy/design-system-components
Version:
The design systems component library.
24 lines (23 loc) • 1.13 kB
TypeScript
import type { ActionCardItem, CompactCardItem, DetailedCardItem } from "./CardGroup";
type DetailedCardProps = DetailedCardItem & OptionCardProps;
type CompactCardProps = CompactCardItem & OptionCardProps;
type ActionCardProps = ActionCardItem;
interface OptionCardProps {
checked: boolean;
onChange: (value: string) => void;
isMultiSelect: boolean;
groupName: string;
}
export type CardButtonProps = {
label: string;
onClick: () => void;
};
export type CardLinkProps = {
label: string;
href: string;
external?: boolean;
};
export declare function DetailedCard({ adornment, title, description, value, onChange, checked, disabled, isMultiSelect, groupName }: DetailedCardProps): import("react/jsx-runtime").JSX.Element;
export declare function CompactCard({ adornment, title, value, onChange, checked, disabled, isMultiSelect, groupName }: CompactCardProps): import("react/jsx-runtime").JSX.Element;
export declare function ActionCard({ adornments, title, subtitle, description, primaryAction, secondaryAction, disabled }: ActionCardProps): import("react/jsx-runtime").JSX.Element;
export {};