welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
28 lines (27 loc) • 1.71 kB
TypeScript
import { default as React } from 'react';
import { CreateWuiProps } from '../System';
import { getBaseType } from './utils';
export interface FieldOptions extends VariantProps {
children: JSX.Element;
disabled?: boolean;
disabledIcon?: JSX.Element;
hint?: JSX.Element | string;
label?: JSX.Element | string;
required?: boolean;
transparent?: boolean;
}
export type FieldProps = CreateWuiProps<'div', FieldOptions>;
type VariantProps = {
error?: JSX.Element | string;
success?: JSX.Element | string;
warning?: JSX.Element | string;
};
export declare const Field: import('../System').CreateWuiComponent<"div", FieldProps>;
export declare const IconWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, {
iconPlacement: "left" | "right";
size?: import('../../utils').DefaultFieldIconSize;
}>> & string;
export declare const IconGroupWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, {
size: import('../../utils').DefaultFieldIconSize;
}>> & string;
export { getBaseType };