@react-to-styled/icon
Version:
22 lines (21 loc) • 795 B
TypeScript
/// <reference types="styled-components" />
/// <reference types="react" />
import { Props } from 'react-inlinesvg';
declare const IconNames: readonly ["arrow_down", "close"];
type IconNamesType = typeof IconNames[number];
interface IconProps extends Omit<Props, 'src'> {
/**
* Possible values for `name` prop of `Icon` component.
*/
readonly name: IconNamesType;
/**
* This number represents width and height of icon. Defaults to 16px
* */
readonly size?: number;
/**
* This represents icon color you want to render
* */
readonly color?: string;
}
declare const Icon: import("styled-components").StyledComponent<({ name, size, color, className, ...props }: IconProps) => JSX.Element, any, {}, never>;
export { IconNames, IconProps, Icon };