Packages
Seamless integration of Twind with Web Components
- 📖 Study the documentation
- 🧭 Explore the examples
- 📜 Read the changelog
Functions
default
▸ default(config, isProduction?): <T>(BaseElement: T) => (...args: any[]) => WithTwindElement<T> & T
Parameters
| Name | Type | Default value |
|---|---|---|
config | TwindConfig<any> | TwindUserConfig<any, Preset<BaseTheme>[]> | undefined |
isProduction | boolean | PROD |
Returns
fn
▸ <T>(BaseElement): (...args: any[]) => WithTwindElement<T> & T
Type parameters
| Name | Type |
|---|---|
T | extends (...args: any[]) => HTMLElement & { connectedCallback?: () => void ; disconnectedCallback?: () => void } |
Parameters
| Name | Type |
|---|---|
BaseElement | T |
Returns
(...args: any[]) => WithTwindElement<T> & T