Ip Allowlist

An editor for IP and CIDR allowlists: a monospace list with a remove button per entry plus an input and Add button that skips duplicates. Built in React.

src/registry/ui/ip-allowlist.tsx/r/ip-allowlist.json

Installation#

bash
npx shadcn@latest add @minidev/ip-allowlist

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/ip-allowlist.json

Usage#

tsx
import { IpAllowlist } from "@/components/ui/ip-allowlist"

export function Example() {
  return (
    <IpAllowlist />
  )
}

API reference#

IpAllowlist props
PropTypeDefault
valuestring[]-
onChange(ips: string[]) => void-
classNamestring-

Dependencies#

npm

lucide-react

Examples#

All settings page components