🌐 Nodejs.cn

2024年3月 - 面包屑和输入一次性密码

新的面包屑和输入OTP组件。

我们添加了一个新的 Breadcrumb 组件和一个输入 OTP 组件。

🌐 We've added a new Breadcrumb component and an Input OTP component.

🌐 Breadcrumb

一个可访问且灵活的面包屑组件。它支持折叠项、自定义分隔符、可自带路由 <Link />,并且可以与其他 shadcn/ui 组件组合使用。

🌐 An accessible and flexible breadcrumb component. It has support for collapsed items, custom separators, bring-your-own routing <Link /> and composable with other shadcn/ui components.

import Link from "next/link"

import {

查看更多示例

输入 OTP

🌐 Input OTP

一个功能齐全的输入 OTP 组件。它支持数字和字母数字代码,自定义长度,复制粘贴,并且可访问。Input OTP 构建在 input-otp 之上,由 @guilherme_rodz 提供。

🌐 A fully featured input OTP component. It has support for numeric and alphanumeric codes, custom length, copy-paste and accessible. Input OTP is built on top of input-otp by @guilherme_rodz.

import {
  InputOTP,
  InputOTPGroup,

阅读文档

如果你有一个v0,新的组件可以生成。

🌐 If you have a v0, the new components are available for generation.