API REFERENCE

theme

Sets Grid colors and appearance with a light/dark preset or a token object extending a preset.

What does this API do?

Sets Grid colors and appearance with a light/dark preset or a token object extending a preset.

Exact input and result types

typescript
theme: GridTheme
ItemValue
JavaScript nametheme
HTML attributetheme
Default'alpine'
Input typeGridTheme

Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Read related types

Feature explanations and examples