Repository navigation
Conversation
anlyyao
requested review from
chaishi,
liweijie0812 and
uyarn
as code owners
November 24, 2026 09:03
anlyyao
force-pushed
the
feat/new-component/inputOTP
branch
from
November 24, 2026 10:58
81a6639 to
5f9e519
Compare
anlyyao
force-pushed
the
feat/new-component/inputOTP
branch
from
December 2, 2026 07:33
5f9e519 to
d0555ca
Compare
Collaborator
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
API(以Mobile React 技术栈为例)
API
InputOTP Props
React.CSSPropertiesinputMode,控制移动端弹出的键盘类型。可选项:numeric/text/decimal/tel/search/email/urlboolean | stringstring | RegExpstring | string[]TNode | ((index: number) => TNode)。通用类型定义SizeEnum。通用类型定义(value: string) => void在输入、粘贴、剪切、删除时均会触发,返回变化后的新值
(value: string) => void当输入框内容全部填充时触发回调