For the complete documentation index, see llms.txt. This page is also available as Markdown.

useTweed

Manage your Tweed SDK integration using the useTweed hook, which includes the setPaletteMode function and the SDK's loading state.

Set palette mode

The tweed widgets SDK offers both dark and light modes. You can select which one to use with this function.

setPaletteMode()
import { useTweed } from "@paytweed/core-react";

const { setPaletteMode } = useTweed()

    setPaletteMode((mode) =>
        mode === "light" ? "dark" : "light",
      )

Method parameters

paletteMode REQUIRED "dark" | "light"

Last updated