storybook-addon-customize-antd-theme
Version:
a Storybook addon help you visually customize an ant design theme
19 lines (18 loc) • 873 B
TypeScript
import React from 'react';
import { Theme } from '@storybook/theming';
import { TextareaAutosizeProps } from 'react-textarea-autosize';
declare type Sizes = '100%' | 'flex' | 'auto';
declare type Alignments = 'end' | 'center' | 'start';
declare type ValidationStates = 'valid' | 'error' | 'warn';
export interface InputStyleProps {
size?: Sizes;
align?: Alignments;
valid?: ValidationStates;
height?: number;
}
declare type TextareaProps = Omit<TextareaAutosizeProps, keyof InputStyleProps> & InputStyleProps;
export declare const Textarea: import("@emotion/styled-base").StyledComponent<Omit<TextareaAutosizeProps, keyof InputStyleProps> & InputStyleProps & React.RefAttributes<any>, TextareaProps, Theme> & {
displayName: string;
};
export default function TextControl({ name, value, onChange, onSave, onFocus, onBlur }: any): JSX.Element;
export {};