MCPcopy
hub / github.com/HalseySpicy/Hooks-Admin / SvgProps

Interface SvgProps

src/components/svgIcon/index.tsx:1–6  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1interface SvgProps {
2 name: string; // 图标的名称 ==> 必传
3 color?: string; //图标的颜色 ==> 非必传
4 prefix?: string; // 图标的前缀 ==> 非必传(默认为"icon")
5 iconStyle?: { [key: string]: any }; // 图标的样式 ==> 非必传
6}
7
8export default function SvgIcon(props: SvgProps) {
9 const { name, prefix = "icon", iconStyle = { width: "100px", height: "100px" } } = props;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected