UNPKG

@navinc/base-react-components

Version:
15 lines (14 loc) 809 B
/// <reference types="react" /> import { IconName } from './icons'; import type { VariationKey } from './button'; declare type IconProps = { name: IconName; } & JSX.IntrinsicElements['svg']; export declare const Icon: ({ name, ...props }: IconProps) => JSX.Element | null; declare type InteractiveIconProps = { variation?: VariationKey; buttonAriaLabel?: string; } & IconProps; export declare const InteractiveIcon: import("styled-components").StyledComponent<({ variation, buttonAriaLabel, ...props }: InteractiveIconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>; declare const _default: import("styled-components").StyledComponent<({ name, ...props }: IconProps) => JSX.Element | null, import("styled-components").DefaultTheme, {}, never>; export default _default;