UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

42 lines 1.07 kB
export declare enum OTPFieldRootDataAttributes { /** * Present when all slots are filled. */ complete = "data-complete", /** * Present when the OTP field is disabled. */ disabled = "data-disabled", /** * Present when the OTP field is readonly. */ readonly = "data-readonly", /** * Present when the OTP field is required. */ required = "data-required", /** * Present when the OTP field is in a valid state (when wrapped in Field.Root). */ valid = "data-valid", /** * Present when the OTP field is in an invalid state (when wrapped in Field.Root). */ invalid = "data-invalid", /** * Present when the OTP field has been touched (when wrapped in Field.Root). */ touched = "data-touched", /** * Present when the OTP field's value has changed (when wrapped in Field.Root). */ dirty = "data-dirty", /** * Present when the OTP field contains at least one character. */ filled = "data-filled", /** * Present when one of the OTP field inputs is focused. */ focused = "data-focused", }