Skip to content

Commit

Permalink
Add IconContext
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo García Maleta committed Nov 12, 2022
1 parent 06f6d96 commit d670f87
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/icon-props.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { createContext } from "@builder.io/qwik";

export interface IconProps {
size?: number,
color?: string,
Expand All @@ -7,7 +9,9 @@ export interface IconProps {
class?: string
}

export const DefaultIconProps: IconProps = {
export const IconContext = createContext<IconProps>("icon-context");

export const defaultIconProps: IconProps = {
size: 24,
color: "currentColor",
strokeWidth: 2,
Expand Down

0 comments on commit d670f87

Please sign in to comment.