UNPKG

@navinc/base-react-components

Version:
48 lines (46 loc) 4.87 kB
import type { VariationKey } from './button.js'; import { InferComponentProps } from './types.js'; /** * @deprecated use the wayfinder icon-button from @navinc/base-react-components/wayfinder instead Uses `<Icon>` wrapped with `<StyledButton>` to create a clickable button icon. While it can take all the props that `StyledButton` can, it's not designed to work with all of them. This component simply piggybacks off button styling where applicable. **/ export declare const IconButton: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<{ variation?: VariationKey; buttonAriaLabel?: string; } & Omit<InferComponentProps<import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import("./button.js").StyledButtonProps>> & string>, "size"> & Omit<InferComponentProps<import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<{ name: import("./index.js").IconName; size?: string; } & import("react").SVGProps<SVGSVGElement>, never>> & string & Omit<({ name, size, ...props }: { name: import("./index.js").IconName; size?: string; } & import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element | null, keyof import("react").Component<any, {}, any>>>, "onClick"> & import("react").RefAttributes<HTMLButtonElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<{ variation?: VariationKey; buttonAriaLabel?: string; } & Omit<InferComponentProps<import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import("./button.js").StyledButtonProps>> & string>, "size"> & Omit<InferComponentProps<import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<{ name: import("./index.js").IconName; size?: string; } & import("react").SVGProps<SVGSVGElement>, never>> & string & Omit<({ name, size, ...props }: { name: import("./index.js").IconName; size?: string; } & import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element | null, keyof import("react").Component<any, {}, any>>>, "onClick"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>; /** @deprecated use the wayfinder icon-button from @navinc/base-react-components/wayfinder instead */ export declare const InteractiveIcon: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<{ variation?: VariationKey; buttonAriaLabel?: string; } & Omit<InferComponentProps<import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import("./button.js").StyledButtonProps>> & string>, "size"> & Omit<InferComponentProps<import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<{ name: import("./index.js").IconName; size?: string; } & import("react").SVGProps<SVGSVGElement>, never>> & string & Omit<({ name, size, ...props }: { name: import("./index.js").IconName; size?: string; } & import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element | null, keyof import("react").Component<any, {}, any>>>, "onClick"> & import("react").RefAttributes<HTMLButtonElement>, never>> & string & Omit<import("react").ForwardRefExoticComponent<{ variation?: VariationKey; buttonAriaLabel?: string; } & Omit<InferComponentProps<import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, import("./button.js").StyledButtonProps>> & string>, "size"> & Omit<InferComponentProps<import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<{ name: import("./index.js").IconName; size?: string; } & import("react").SVGProps<SVGSVGElement>, never>> & string & Omit<({ name, size, ...props }: { name: import("./index.js").IconName; size?: string; } & import("react").SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element | null, keyof import("react").Component<any, {}, any>>>, "onClick"> & import("react").RefAttributes<HTMLButtonElement>>, keyof import("react").Component<any, {}, any>>;