Interface: VirtualSheet
twind/sheets.VirtualSheet
A sheet that collects styles into an array.
Hierarchy
Properties
init
• init: SheetInit
Register a function that should be called to create a new state.
Defined in: src/sheets/index.ts:66
insert
• insert: (rule
: string, index
: number) => void
Type declaration:
▸ (rule
: string, index
: number): void
Parameters:
Name | Type |
---|---|
rule | string |
index | number |
Returns: void
Defined in: src/types/twind.ts:64
Defined in: src/types/twind.ts:64
reset
• reset: (snapshot?
: unknown[]) => unknown[]
Creates a snapshot of the current state, invokes all init callbacks to create a fresh state and returns the snaphot.
Type declaration:
▸ (snapshot?
: unknown[]): unknown[]
Parameters:
Name | Type |
---|---|
snapshot? | unknown[] |
Returns: unknown[]
Defined in: src/sheets/index.ts:41
Defined in: src/sheets/index.ts:41
target
• Readonly
target: string[]
Defined in: src/types/twind.ts:62