Skip to content

Commit d43fbce

Browse files
🐛 will allow to pass partial theme props
1 parent 41e1392 commit d43fbce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/lib/interfaces.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
export interface ITheme {
22
primary: string;
3+
hover: string;
34
border: string;
4-
[key: string]: any;
5+
gray: string;
6+
background: string;
7+
borderRadius: string;
8+
height: string;
59
}
610

711
export interface Option {
@@ -30,5 +34,5 @@ export interface ISelectProps {
3034
filterOptions?: (options: Option[], filter: string) => Option[];
3135
overrideStrings?: { [key: string]: string };
3236
labelledBy: string;
33-
theme?: ITheme;
37+
theme?: Partial<ITheme>;
3438
}

0 commit comments

Comments
 (0)