@cn-ui/core
Version:
The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.
57 lines (56 loc) • 1.12 kB
TypeScript
export interface ColSizeObject {
/**
* 24 栅格下占据的宽度
* @tested
*/
span?: number;
/**
* 该元素的向右偏移 span 值
* @tested
*/
offset?: number;
/**
* 栅格向左移动格数
* @tested
*/
pull?: number;
/**
* 栅格向右移动格数
* @tested
*/
push?: number;
}
export type ColSize = number | ColSizeObject;
export interface ColProps extends ColSizeObject {
/**
* 同 TailwindCSS xs: < 640
* @tested
*/
xs?: ColSize;
/**
* 同 TailwindCSS sm: >= 640
* @tested
*/
sm?: ColSize;
/**
* 同 TailwindCSS md: >= 768
* @tested
*/
md?: ColSize;
/**
* 同 TailwindCSS lg: >= 1024
* @tested
*/
lg?: ColSize;
/**
* 同 TailwindCSS xl: >= 1280
* @tested
*/
xl?: ColSize;
/**
* 同 TailwindCSS xs: >= 1536
* @tested
*/
xxl?: ColSize;
}
export declare const Col: import("solid-js").Component<import("@cn-ui/reactive").OriginComponentOutputType<ColProps, HTMLElement, string>>;