The useLayers
hook returns the layers object. It contains the layers and the styles for each layer at the current state.
import { useLayers } from "@shadcn/designer"
const layers = useLayers()
You can use this to export the layers as JSON.
The useLayers
hook returns the layers object. It contains the layers and the styles for each layer at the current state.
import { useLayers } from "@shadcn/designer"
const layers = useLayers()
You can use this to export the layers as JSON.