import { type Component, type JSXElement } from 'solid-js'; /** API * @since 1.0.0 * @author monako97 */ export interface CardProps { /** 标题 * @default 默认值 * @since 1.1.0
表示这个属性在 1.1.0 新增 */ title?: Component; /** 内容 */ children: JSXElement; /** 尺寸 * @default 'normal' */ size?: keyof typeof Size; /** 类型 * @default 'line' */ type?: keyof typeof Type; } /** 对于字面量建议使用枚举 */ export declare enum Size { /** 小 */ small = 0, /** 默认 */ normal = 1 } /** 类型 */ export declare enum Type { /** 线 */ line = "line", /** 卡片 */ card = "card" } declare function Card(props: CardProps): import("solid-js").JSX.Element; export default Card;