UNPKG

@hhgtech/hhg-components

Version:
25 lines (24 loc) 871 B
import React, { CSSProperties, DOMAttributes } from 'react'; type Props = { children: JSX.Element; className?: string; onClick?: (e?: React.MouseEvent<HTMLDivElement, MouseEvent>) => void; wrapperSize?: number; iconSize?: number; wrapperStyle?: CSSProperties; iconStyle?: CSSProperties; wrapperProps?: DOMAttributes<HTMLDivElement> & { [key: string]: string | number | boolean; }; svgIcon?: { fill?: string; stroke?: string; }; }; /** * Wrapper for icon * You can use this component to wrap your icon with custom size and style * With svgIcon you can set fill and stroke color as well */ declare const IconWrapper: ({ children, className, onClick, wrapperSize, iconSize, wrapperStyle, iconStyle, svgIcon, wrapperProps, }: Props) => React.JSX.Element; export { IconWrapper };