195 Pro components and page blocks

Get Pro

Updated

Password Peek

New

Preview

Customize

Reveal duration0.35s
Radius12px

Installation

npx shadcn@latest add https://uibrik.com/r/password-peek.json
Adds the files to components/uibrik/password-peek and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/password-peek.

Usage

import { PasswordPeek } from "@/components/uibrik/password-peek/password-peek";​<PasswordPeek  label="Password"  placeholder="Enter password"  defaultValue="sunset-harbor-42"  revealDuration={0.35}  radius={12}  defaultVisible={false}  // value="…"  // onValueChange={(value) => {}}  // visible={false}  // onVisibleChange={(visible) => {}}/>

Where to use Password Peek

  • Sign-in and sign-up

    The left-to-right reveal makes it obvious the password is now showing, even at a glance.

    Pairs with Auth Forms and Password Strength

  • Wi-Fi and device setup

    Long generated passwords are easier to check against a label when they appear in order.

  • Secrets in settings

    The same peek works for tokens and keys a user needs to read back once.

    Pairs with API Keys and Settings Page

Props

PasswordPeek
label
Type string
"Password"
Label above the field. Empty hides it but keeps it as the accessible name.
placeholder
Type string
"Enter password"
Shown while empty.
defaultValue
Type string
"sunset-harbor-42"
Value on mount when uncontrolled.
revealDuration
Type number
0.35
Longest the left-to-right reveal may take, however long the password.
radius
Type number
12
Corner radius.
value / onValueChange
Type string / (value) => void
–
Controlled value.
visible / onVisibleChange
Type boolean / (visible) => void
–
Controlled visibility.
defaultVisible
Type boolean
false
Visibility on mount when uncontrolled.
...input props
Type InputHTMLAttributes
–
name, autoComplete, required and the rest go to the input.
className
Type string
–
Classes for the wrapper.