Components
Pin Input
The OTP (One-Time Password) component is a user interface element that allows users to enter a unique password for authentication or verification purposes.
Component Status Details
Status component contains a list of checks and completeness that has been tested and owned by each component
The OTP (One-Time Password) component is a user interface element that allows users to enter a unique password for authentication or verification purposes.

Variants
Legion has 3 variants of Pin Input :
- Pin Input Reguler
- Pin Input Error
- Pin Input Success
Usage
Pin Input Reguler
var value by remember {mutableStateOf("")}LgnPinInput(value = value,onOtpTextChange = { it, isFull ->value = it},
Pin Input Error
var value by remember {mutableStateOf("")}var message by remember {mutableStateOf("message")}LgnPinInput(
Pin Input Success
var value by remember {mutableStateOf("")}var message by remember {mutableStateOf("message")}LgnPinInput(
Attributes
Parameters | Types | Descriptions |
---|---|---|
value | String | Set Value of Pin Input |
colors | LgnPinInputColors | Set Color of Pin Input |
shape | Shape | Set Shape of Pin Input |
error | String | Set Error Message of Pin Input |
success | String | Set Success Message of Rating |
onOtpTextChange | Function | Set Action When OTP is Change |