DocSpace-client/packages/shared/components/code-input
2024-06-21 12:50:12 +03:00
..
CodeInput.stories.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
CodeInput.styled.ts Shared: use colors from theme 2024-06-21 12:50:12 +03:00
CodeInput.test.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
CodeInput.tsx Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
CodeInput.types.ts Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
index.ts Replaced copyright start year + format 2024-03-21 18:09:55 +04:00
README.md Shared:Components:CodeInput: rewrite to typescript 2023-12-07 19:02:43 +03:00

Code Input

Input field for auth code.

Usage

import { CodeInput } from "@docspace/shared/components";
<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
onChange func - - - Sets a callback function that is triggered on the onChange event