UNPKG

@cn-ui/core

Version:

The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.

63 lines (62 loc) 1.3 kB
import { type JSXSlot } from "@cn-ui/reactive"; export interface ButtonProps extends ButtonSlots { /** * 按钮类型 * @tested */ type?: "primary" | "dashed" | "link" | "default" | "text"; /** * 按钮的HTML类型 * @tested */ htmlType?: HTMLButtonElement["type"]; /** * 按钮的形状 * @tested */ shape?: "default" | "circle" | "round"; /** * 按钮是否禁用 * @tested */ disabled?: boolean; /** * 按钮是否加载中 * @tested */ loading?: boolean; /** * 加载中的文本 * @tested */ loadingText?: string; /** * 按钮是否为危险按钮 * @tested */ danger?: boolean; /** * 按钮是否为块级按钮 * @tested */ block?: boolean; /** * 按钮是否为圆形按钮 * @tested */ circle?: boolean; } export interface ButtonSlots { /** * 按钮的图标 * @tested */ icon?: JSXSlot; /** * loading 按钮的图标 * @tested */ loadingIcon?: JSXSlot; } /** 基础按钮组件 */ export declare const Button: import("solid-js").Component<import("@cn-ui/reactive").OriginComponentOutputType<ButtonProps, HTMLButtonElement, string>>;