@orizn/react
v1.0.0
Published
React component for checking visa requirements — powered by Orizn API
Downloads
18
Maintainers
Readme
@orizn/react
Drop-in React component for checking visa requirements.
Powered by the Orizn Visa API — 39,585 pairs, 15 languages.
Install
npm install @orizn/reactUsage
import { VisaChecker } from "@orizn/react";
// Basic (free, no key)
<VisaChecker />
// With API key (full details, 15 languages)
<VisaChecker apiKey="your-key" lang="fr" />
// With defaults and callback
<VisaChecker
defaultPassport="FRA"
defaultDestination="JPN"
onResult={(r) => console.log(r.requirement)}
/>Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| apiKey | string | — | API key for full details |
| lang | string | "en" | Response language |
| defaultPassport | string | "" | Pre-filled passport |
| defaultDestination | string | "" | Pre-filled destination |
| onResult | (result) => void | — | Callback on result |
| onError | (error) => void | — | Callback on error |
| className | string | — | CSS class |
| style | CSSProperties | — | Inline styles |
Get API key
Free: 3,000 requests/month at visa.orizn.app
