Skip to main content
Version: Next

PinInput API

import { PinInput } from '@editora/ui-react';

Props​

PropTypeDescription
childrenReact.ReactNode
density'default' | 'compact' | 'comfortable'
descriptionstring
disabledboolean
errorstring
invalidboolean
labelstring
lengthnumber
maskboolean
mode'numeric' | 'alpha' | 'alphanumeric'
namestring
onChange(value: string) => void
onComplete(value: string) => void
placeholderCharstring
readOnlyboolean
requiredboolean
shape'default' | 'square' | 'soft'
size'sm' | 'md' | 'lg' | '1' | '2' | '3'
valuestring

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).

Element: <ui-pin-input>​

PinInput renders the ui-pin-input custom element from @editora/ui-core, which can also be used without React.

Attributes: aria-describedby, aria-description, density, description, disabled, error, invalid, label, length, mask, mode, name, placeholder-char, readonly, required, shape, size, value

Events: change, complete, input