Skip to content

Configuration overview

There is no public JavaScript configuration API. The package does not accept a configuration object, HTML data attributes, URL parameters, or calls to an exported initializer. The TypeScript CONFIG and DEFAULTS objects in the source are implementation details and are not exported by the published browser bundle.

Visitors choose options through the widget’s own interface. The available controls and their default behavior are described in the feature guides. Settings are serialized in the site’s localStorage under a11y-widget-state and are restored on later visits to the same origin.

Website owners can choose how to deliver the bundle (CDN, npm, or self-hosting), and can configure their own Content Security Policy and caching around that file. Those deployment choices do not configure the widget itself.

If you need to set defaults, hide individual controls, or manipulate preferences from application code, the current public package does not provide those APIs. Do not rely on internal storage keys or source constants as a supported integration contract.