liber-salti
Version:
Saltí - Liber Design System
38 lines (37 loc) • 891 B
TypeScript
import React from 'react';
import { IconName } from '../Icon/Icon.types';
export interface CardHeaderProps {
/**
* The title of the card.
*/
title: string;
/**
* The subtitle of the card.
*/
subtitle?: string;
/**
* The element that shows at the start of the card.
*/
StartElement?: React.ReactNode;
/**
* The properties of the IconButton on the right of the card.
*/
action?: {
/**
* The callback of the IconButton;
*/
onClick?: () => void;
/**
* The icon of the IconButton;
*/
iconName: IconName;
/**
* If `true` the IconButton will be disabled;
*/
disabled?: boolean;
/**
* The content of the tooltip associated.
*/
tooltip?: string;
};
}