Files
wdi-dashboard/node_modules/@chakra-ui/icon/dist/create-icon.d.ts
2024-08-16 15:06:52 +05:30

31 lines
839 B
TypeScript

import { IconProps } from './icon.js';
import * as _chakra_ui_system from '@chakra-ui/system';
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;
}
declare function createIcon(options: CreateIconOptions): _chakra_ui_system.ComponentWithAs<"svg", IconProps>;
export { createIcon };