BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/domain-ui/passport-input

passport-input

domain-ui/passport-input
FreeComponent

domain-ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/teurons/domain-ui/main/apps/web/public/r/passport-input.json

Source

components/domain-ui/india/passport-input.tsxraw.githubusercontent.com/teurons/domain-ui/main/apps/web/public/r/passport-input.json
1"use client";
2
3import { useId } from "react";
4import {
5 RegexInput,
6 type RegexInputProps,
7} from "@/components/domain-ui/regex-input";
8import { Label } from "@/components/ui/label";
9
10const INDIAN_PASSPORT_REGEX = /^[A-Z][0-9]{7}$/;
11
12export function PassportInput({
13 showLabel = true,
14 ...props
15}: Omit<RegexInputProps, "regex"> & { showLabel?: boolean }) {
16 const generatedId = useId();
17 const id = props.id || generatedId;
18
19 if (!showLabel) {
20 return <RegexInput regex={INDIAN_PASSPORT_REGEX} {...props} id={id} />;
21 }
22
23 return (
24 <div className="*:not-first:mt-2">
25 <Label htmlFor={id}>Indian Passport</Label>
26 <RegexInput regex={INDIAN_PASSPORT_REGEX} {...props} id={id} />
27 </div>
28 );
29}

What it pulls in

Other registry items

  • input
  • label
  • http://localhost:3000/r/regex-input.json

Files it writes

  • components/domain-ui/india/passport-input.tsx

Facts

Registry
domain-ui
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

domain-ui.dev teurons/domain-ui on GitHub Raw registry item This item as JSON

More from domain-ui

All 16 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
pan-inputpan-inputdomain-uiComponentsFreeno deps
pan-input-incrementalpan-input-incrementaldomain-uiComponentsFreeno deps
passport-input-incrementalpassport-input-incrementaldomain-uiComponentsFreeno deps
phone-inputphone-inputdomain-uiComponentsFree2 deps
portfolio-chartportfolio-chartdomain-uiComponentsFreeno deps
regex-inputregex-inputdomain-uiComponentsFreeno deps · 2 files
regex-input-incrementalregex-input-incrementaldomain-uiComponentsFreeno deps · 5 files
responsive-resizable-previewresponsive-resizable-previewdomain-uiComponentsFreeno deps · 3 files
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex