@pond-ts/charts API Reference
    Preparing search index...

    Interface UseChartThemeOptions

    Options for useChartTheme.

    interface UseChartThemeOptions {
        attributes?: readonly string[];
        target?: Element;
    }
    Index

    Properties

    Properties

    attributes?: readonly string[]

    Attributes that, when they change on target, trigger a re-resolve. Default ['data-theme', 'class'] — the two common dark/light switches.

    target?: Element

    Element whose CSS custom properties are read and whose attribute changes are watched. Default document.documentElement (<html>) — the usual home of a data-theme toggle. Pass a scoped element to theme one subtree.