UNPKG

@central-icons-react/square-outlined-radius-0-stroke-2

Version:

A collection of square outlined React icons with 0px radius and 2px stroke width, designed for use in React applications.

11 lines 4.64 kB
{ "version": 3, "sources": ["src/CentralIconBase/index.tsx", "src/IconBrain/index.tsx"], "sourcesContent": [ "import React from \"react\";\nimport type { SVGProps } from \"react\";\n\nexport type CentralIconBaseProps = {\n size?: string | number;\n ariaHidden?: boolean;\n mode?: \"masked\" | \"raw\";\n maskId?: string;\n} & SVGProps<SVGSVGElement>;\n\nexport const CentralIconBase: React.FC<\n CentralIconBaseProps & { ariaLabel?: string }\n> = ({\n children,\n size = 24,\n ariaLabel,\n color,\n ariaHidden = true,\n style,\n mode = \"masked\",\n maskId,\n ...props\n}) => {\n const masked = mode !== \"raw\" && !!maskId;\n return (\n <svg\n {...props}\n aria-hidden={ariaHidden}\n role={ariaHidden ? undefined : \"img\"}\n width={typeof size === \"number\" ? `${size}px` : size}\n height={typeof size === \"number\" ? `${size}px` : size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ color, ...style }}\n >\n {ariaLabel && !ariaHidden && <title>{ariaLabel}</title>}\n {masked ? (\n <>\n <mask\n id={maskId}\n maskUnits=\"userSpaceOnUse\"\n x=\"0\"\n y=\"0\"\n width=\"24\"\n height=\"24\"\n >\n <rect width=\"24\" height=\"24\" fill=\"#000\" />\n <g fill=\"none\" style={{ color: \"#fff\" }}>\n {children}\n </g>\n </mask>\n <rect\n width=\"24\"\n height=\"24\"\n fill=\"currentColor\"\n mask={`url(#${maskId})`}\n />\n </>\n ) : (\n children\n )}\n </svg>\n );\n};\n", "import React from \"react\";\nimport { CentralIconBase, type CentralIconBaseProps } from \"../CentralIconBase\";\n\nexport const IconBrain: React.NamedExoticComponent<CentralIconBaseProps> = React.memo((props) => {\n return <CentralIconBase {...props} ariaLabel=\"brain, thinking, human, clever\" maskId=\"square-outlined-radius-0-stroke-2-IconBrain\"><path d=\"M7.5 6C5.567 6 4 7.567 4 9.5C4 10.0368 4.12085 10.5454 4.33682 11\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M16.5 6C18.433 6 20 7.567 20 9.5C20 10.0368 19.8792 10.5454 19.6632 11\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M6 11C4.34315 11 3 12.3431 3 14C3 15.6569 4.34315 17 6 17C6.76835 17 7.46924 16.7111 8 16.2361\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M18 11C19.6569 11 21 12.3431 21 14C21 15.6569 19.6569 17 18 17C17.2316 17 16.5308 16.7111 16 16.2361\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M12 5.5C12 4.11929 10.8807 3 9.5 3C8.11929 3 7 4.11929 7 5.5C7 6.3178 7.39267 7.04389 7.99976 7.5\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M12 5.5C12 4.11929 13.1193 3 14.5 3C15.8807 3 17 4.11929 17 5.5C17 6.3178 16.6073 7.04389 16.0002 7.5\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M12 5.5V17.5\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M12 17.5C12 19.433 10.433 21 8.5 21C6.567 21 5 19.433 5 17.5\" stroke=\"currentColor\" strokeWidth=\"2\"/><path d=\"M19 17.5C19 19.433 17.433 21 15.5 21C13.567 21 12 19.433 12 17.5\" stroke=\"currentColor\" strokeWidth=\"2\"/></CentralIconBase>;\n});\n\nexport default IconBrain;\n" ], "mappings": "AAAA,qBAUO,IAAM,EAET,EACF,WACA,OAAO,GACP,YACA,QACA,aAAa,GACb,QACA,OAAO,SACP,YACG,KACC,CACJ,IAAM,EAAS,IAAS,OAAS,CAAC,CAAC,EACnC,OACE,gBAqCE,MArCF,IACM,EACJ,cAAa,EACb,KAAM,EAAa,OAAY,MAC/B,MAAO,OAAO,IAAS,SAAW,GAAG,MAAW,EAChD,OAAQ,OAAO,IAAS,SAAW,GAAG,MAAW,EACjD,QAAQ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