@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
28 lines (27 loc) • 826 B
TypeScript
import { type IconProps } from "./icon";
interface CreateIconOptions {
/**
* The icon `svg` viewBox
* @default "0 0 24 24"
*/
viewBox?: string;
/**
* The `svg` path or group element
* @type React.ReactElement | React.ReactElement[]
*/
path?: React.ReactElement | React.ReactElement[];
/**
* If the `svg` has a single path, simply copy the path's `d` attribute
*/
d?: string;
/**
* The display name useful in the dev tools
*/
displayName?: string;
/**
* Default props automatically passed to the component; overwritable
*/
defaultProps?: IconProps;
}
export declare function createIcon(options: CreateIconOptions): import("react").ForwardRefExoticComponent<IconProps & import("react").RefAttributes<SVGSVGElement>>;
export {};