Components
Please note: Twizzle library is a beta package as of now.
Twizzle Library can then be installed using the following commands:
Twizzle Library is an open-source React component library that can be used to create components that are reusable and easy to use.
It is a collection of components that can be used to create a variety of different UI elements.
Twizzle Library components come with a variety of different styles and themes that can be customized to fit your needs.
Twizzle Library comes with default themes that can be overriden by the user. The default themes that are available are:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{
'primary'?: {
'backgroundColor': string,
'color': string
},
'secondary'?: {
'backgroundColor': string,
'color': string
},
'loader'?: {
'color': string,
},
'typography'?: {
'fontFamily': string
},
'variants'?: {
'success': {color: string},
'info': {color: string},
'warning': {color: string},
'danger': {color: string}
}
}
To override the default theme, you can override the wrap your index.js(x)/ts(x) file with the following code:
1
2
3
4
5
6
7
8
import { ThemeContext } from 'twizzle-library';
<ThemeContext.Provider theme={theme}>
<App>
<ThemeContext.Provider>