welcome-ui
Version:
Customizable design system with react • styled-components • styled-system and ariakit.
26 lines (25 loc) • 1.17 kB
TypeScript
import { default as React } from 'react';
import { CreateWuiProps } from '../System';
import { Size } from './theme';
import * as S from './styles';
export type IconContent = {
block?: string;
height?: number;
isFlag?: boolean;
stroked?: boolean;
viewBox?: string;
width?: number;
};
export interface IconOptions {
content?: IconContent;
name?: string;
onClick?: (event: React.MouseEvent<SVGSVGElement>) => void;
size?: Size;
title?: string;
}
export type IconProps = CreateWuiProps<typeof S.Icon, IconOptions>;
export declare const Icon: import('../System').CreateWuiComponent<"svg", IconProps>;
export declare const StyledIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<React.SVGProps<SVGSVGElement>, keyof import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>> & import('@xstyled/system').SystemProps<import('@xstyled/system').Theme>, Partial<{
alt: string;
title: string;
}> & Pick<IconContent, "isFlag" | "stroked"> & Pick<IconOptions, "size"> & import('../System').WuiProps>> & string;