new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

shadcn/ui · Components · all subjects

input-otp/props

8 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Input OTP disabled prop

Use the disabled prop to disable the Input OTP component.

Input OTP slot index prop

Each InputOTPSlot component requires an index prop that specifies its position in the OTP sequence (0-based indexing).

Input OTP pattern prop with REGEXP_ONLY_DIGITS_AND_CHARS

Use the pattern prop with REGEXP_ONLY_DIGITS_AND_CHARS to accept both letters and numbers in the OTP input. Import with: import { REGEXP_ONLY_DIGITS_AND_CHARS } from "input-otp"

Input OTP pattern prop with REGEXP_ONLY_DIGITS

Use the pattern prop with REGEXP_ONLY_DIGITS to accept only numeric digits in the OTP input, commonly used for PIN codes.

InputOTP pattern prop

Use the pattern prop to define a custom pattern for the OTP input. Import patterns from input-otp package, such as REGEXP_ONLY_DIGITS_AND_CHARS for alphanumeric support or REGEXP_ONLY_DIGITS for digits only.

InputOTPSlot index prop

Each InputOTPSlot requires an index prop that specifies its position in the sequence, starting from 0.

Input OTP maxLength prop

The InputOTP component accepts a maxLength prop that specifies the maximum number of characters allowed in the input.

Input OTP pattern prop with REGEXP_ONLY_DIGITS_AND_CHARS

Use the pattern prop with REGEXP_ONLY_DIGITS_AND_CHARS constant imported from input-otp to define a custom pattern that accepts both digits and characters. Example: import { REGEXP_ONLY_DIGITS_AND_CHARS } from "input-otp" followed by <InputOTP maxLength={6} pattern={REGEXP_ONLY_DIGITS_AND_CHARS}>

Give your agent this brain