@nature-ui/icon
Version:
A base React component for icons
24 lines (21 loc) • 752 B
TypeScript
import * as _nature_ui_system_dist_system_types from '@nature-ui/system/dist/system.types';
import { PropsOf } from '@nature-ui/system';
import { StringOrNumber } from '@nature-ui/utils';
import React from 'react';
declare const sizes: {
xs: number;
sm: number;
md: number;
lg: number;
xl: number;
};
interface IconProps {
color?: string;
size?: keyof typeof sizes | number;
viewBox?: string;
boxSize?: StringOrNumber;
}
declare const SvgIcon: _nature_ui_system_dist_system_types.NatureComponent<"svg", {}>;
type SvgIconProps = PropsOf<typeof SvgIcon> & IconProps;
declare const Icon: React.ForwardRefExoticComponent<Omit<SvgIconProps, "ref"> & React.RefAttributes<any>>;
export { Icon, IconProps, SvgIconProps };