rokle

Personality

20
40
70
15

Active brand: Meridian

Adjust sliders to see every component on the page respond in real time.

PasswordInput

Password text field with a visibility toggle to reveal or obscure the entered value.

Examples

Basic

A simple password input field.

With Show/Hide Toggle

Toggle visibility of the password with a button.

With Strength Indicator

Shows password strength as you type.

Installation

pnpm add @rokle/components @rokle/tokens

Installs with the default Rokle brand. Generate a custom brand on rokle.app to use your own colours and personality.

Usage

import { PasswordInput } from "@rokle/components";
import { PasswordInput } from "@rokle/components";

export function Example() {
  return <PasswordInput />;
}

API Reference

PropTypeDefaultDescription
valuestring-Current password value.
onChange(value: string) => void-Called when value changes.
placeholderstring-Placeholder text.