@vtex/admin-ui
Version:
> VTEX admin component library
31 lines (30 loc) • 1.01 kB
TypeScript
import type { StyleProp } from '@vtex/admin-ui-core';
import type { ComponentStyleProps } from '@vtex/admin-ui-react';
export interface SystemPrimitive {
/**
* define component styles
* @default {}
* @see https://admin-ui-docs.vercel.app/theming/style-object/
*/
csx?: StyleProp;
/**
* Emotion css prop
*/
css?: any;
}
export declare type SystemComponent = SystemPrimitive;
export declare type SystemComponentProps<T> = SystemPrimitive & OmitNotAllowedProps<T>;
export declare type OmitNotAllowedProps<T> = Omit<T, 'className' | 'color' | 'style'>;
declare type IconSize = 'regular' | 'small';
declare module '@vtex/phosphor-icons' {
interface IconOptions extends ComponentStyleProps {
size?: IconSize;
}
}
export interface InputState {
/** Whether the input is disabled. */
isDisabled?: boolean;
/** Whether the input can be selected but not changed by the user. */
isReadOnly?: boolean;
}
export {};