deno.land / x / react_icons@0.2.3 / lib / iconContext.tsx

iconContext.tsx
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import * as React from "preact";import { JSX } from "preact";
export interface IconContext { color?: string; size?: string; className?: string; style?: JSX.CSSProperties; attr?: JSX.SVGAttributes<SVGElement>;}
export const DefaultContext: IconContext = { color: undefined, size: undefined, className: undefined, style: undefined, attr: undefined,};
export const IconContext: React.Context<IconContext> = React.createContext && React.createContext(DefaultContext);
react_icons

Version Info

Tagged at
a year ago