Home > @css-hooks/core > CreateHooksResult
CreateHooksResult interface
An object containing the functions needed to support and use the configured hooks.
Signature:
export interface CreateHooksResult<S, CSSProperties>
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
<C extends Condition<S>[]>(...conditions: C) => { and: C; } |
Combines a list of conditions into a single condition which is true when all of the specified conditions are true. | ||
|
<C extends Condition<S>>(condition: C) => { not: C; } |
Negates a condition. | ||
|
(condition: Condition<S>, style: CSSProperties) => EnhanceStyleFn<CSSProperties> |
Enhances a style object with conditional styles. | ||
|
<C extends Condition<S>[]>(...conditions: C) => { or: C; } |
Combines a list of conditions into a single condition which is true when any of the specified conditions are true. | ||
|
() => string |
The style sheet required to support the configured hooks. |