Skip to content

Crate Examples


Default window.crate object

Custom glyph

Initialising a custom crate object

Multiple instances at the same time

Updating the state

Dynamically interacting with the button


We recommend using the async version of the API, as it'll make your website way faster. The synchronous version should only be used if it's being dynamically inserted into your website after the page's initial load (eg. A custom JS script)

Initialising a custom crate object