2022-02-02 22:04:23 +00:00
|
|
|
# Code Input
|
|
|
|
|
|
|
|
Input field for auth code.
|
|
|
|
|
|
|
|
### Usage
|
|
|
|
|
|
|
|
```js
|
2022-07-22 19:01:25 +00:00
|
|
|
import CodeInput from "@docspace/components/code-input";
|
2022-02-02 22:04:23 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
```jsx
|
|
|
|
<CodeInput className="code-input" onSubmit={onSubmit} />
|
|
|
|
```
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ----------- | :------------: | :------: | :----: | :-----: | -------------------------------------- |
|
|
|
|
| `className` | `string` | - | - | - | Accepts class |
|
|
|
|
| `id` | `string` | - | - | - | Accepts id |
|
|
|
|
| `onSubmit` | `func` | ✅ | - | - | What the will trigger when press Enter |
|
|
|
|
| `style` | `obj`, `array` | - | - | - | Accepts css style |
|