@i-novus/ui-core
Version:
Базовые UI компоненты
36 lines (35 loc) • 1.45 kB
TypeScript
import { HTMLAttributes } from 'react';
import { ComponentBaseProps } from '../core';
type ScaleSize = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17;
type BorderRadiusSize = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
export interface PaperProps extends ComponentBaseProps, HTMLAttributes<HTMLDivElement> {
align?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
bgColor?: string;
borderRadius?: BorderRadiusSize;
bordered?: boolean;
bottomLeftRadius?: BorderRadiusSize;
bottomRightRadius?: BorderRadiusSize;
direction?: 'vertical' | 'horizontal';
display?: 'flex' | 'grid' | 'block' | 'inline-block' | 'inline-flex' | 'none';
fullWidth?: boolean;
gap?: ScaleSize;
height?: 'auto' | 'min-content' | 'max-content' | string | number;
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'baseline';
margin?: ScaleSize;
mb?: ScaleSize;
ml?: ScaleSize;
mr?: ScaleSize;
mt?: ScaleSize;
padding?: ScaleSize;
pb?: ScaleSize;
pl?: ScaleSize;
pr?: ScaleSize;
pt?: ScaleSize;
scrollable?: boolean;
shadow?: boolean;
topLeftRadius?: BorderRadiusSize;
topRightRadius?: BorderRadiusSize;
width?: number | string;
}
export declare const Paper: import("react").ForwardRefExoticComponent<PaperProps & import("react").RefAttributes<HTMLDivElement>>;
export {};