WidgetRegistry

Maps widget types to renderers.

The escape hatch behind the theming contract: a partner whose design system cannot be expressed in ThanklyTokens replaces a whole widget type against the same typed data, rather than forking the SDK. Registering over a built-in replaces it — the built-in does not also render.

Types

Link copied to clipboard
object Companion

Factories for the built-in registry.

Functions

Link copied to clipboard

A copy with renderer handling type, replacing any existing entry.

Link copied to clipboard

Renderer for type, or null when nothing handles it.

Link copied to clipboard
fun types(): Set<String>

Widget types this registry can render.