UNPKG

mobile-more

Version:

基于 antd-mobile v5 扩展移动端 UI 组件

9 lines (8 loc) 393 B
import { CSSProperties, HTMLAttributes } from 'react'; export interface CSSPropertiesWithVariable extends CSSProperties { [key: `--${string}`]: string; } export type StyleWithVariable<V extends string = never> = CSSProperties & Partial<Record<V, string>>; export type HTMLAttributeWithStyleVariable<T, C extends string = never> = HTMLAttributes<T> & { style?: StyleWithVariable<C>; };