/** * `data-*` attribute constants exposed on the rendered `` element. * * Mirrors Base UI React's `ToggleDataAttributes` enum. We use a frozen * `const` object here instead of a TypeScript `enum` so the emitted bundle * stays side-effect-free and the values can be referenced as string literal * types. */ export const ToggleDataAttributes = Object.freeze({ /** * Present when the toggle button is pressed. */ pressed: "data-pressed", } as const); export type ToggleDataAttributes = (typeof ToggleDataAttributes)[keyof typeof ToggleDataAttributes];