XiodUI
HomeDocs
OverviewComponentsStyling & CustomizationChangelog

Components

  • Accordion
  • Agent Steps
  • Alert
  • Alert Dialog
  • Aspect Ratio
  • Autocomplete
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • Button Group
  • Button Split
  • Calendar
  • Card
  • Carousel
  • Checkbox
  • Circular Progress
  • Collapsible
  • Color Picker
  • Combobox
  • Command
  • Context Menu
  • Copy To Clipboard
  • Corner Badge
  • Dashboard Grid
  • Date Picker
  • Dialog
  • Dot Matrix
  • Draggable
    Updated
  • Drawer
  • Empty
  • Field
  • Fieldset
  • File Upload
    Updated
  • Form
  • Frame
  • Gauge
  • Grid
  • Group
  • Input
  • Input Group
  • Input OTP
  • Input Payment
  • Input Phone
    Updated
  • Input Sensitive
  • Kbd
  • Kinetic Click
  • Label
  • List Box
    Updated
  • Loader
  • Marker
  • Menu
  • Menubar
  • Message
  • Meter
  • Morphic Toast
  • Navigation Menu
  • Number Field
  • Option Picker
  • Orb
  • Pagination
  • Popover
  • Preview Card
    Updated
  • Progress
  • Radio
  • Resizable
  • Ruler Picker
  • Scroll Area
  • Scroll Bar
  • Select
  • Separator
  • Sidebar
  • Skeleton
  • Slider
  • Sortable
  • Switch
  • Table
  • Tabs
  • Text
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Toolbar
  • Tooltip
  • Waveform
  • Wheel Picker

Loading...

Preview Skeleton

Installation Skeleton

Usage Skeleton

API Reference Skeleton

Sponsors

Support the development of XiodUI and help us build the best component library on Earth.

+++
Sponsor on GitHub

Input Sensitive

Previous: Input PhoneNext: Kbd

An input that masks a secret value, with buttons to reveal and copy it.

Preview

Loading Preview...

Installation

bun add xiod-ui

Usage

Imports

1import { InputSensitive } from "xiod-ui/input-sensitive";

API Reference

Detailed documentation of properties and options.

InputSensitive

Accepts className, style and render, plus every native attribute of the element it renders.

PropTypeDefaultDescription
copiedIcon
ReactNode
–

Replaces this icon. Accepts any node; null renders no icon. Takes precedence over IconProvider.

copyIcon
ReactNode
–

Replaces this icon. Accepts any node; null renders no icon. Takes precedence over IconProvider.

Input PhoneKbd
defaultRevealed
boolean
false

Whether the value starts shown, when revealed isn't controlled.

defaultValue
string | number | readonly string[]
–

The default value of the input. Use when uncontrolled.

hideIcon
ReactNode
–

Replaces this icon. Accepts any node; null renders no icon. Takes precedence over IconProvider.

labels
Partial<InputSensitiveLabels>
–

Replaces the built-in text for this instance. See LabelsProvider to change it everywhere.

onCopy
(() => void)
–

Called after the copy button copies the value to the clipboard.

onRevealedChange
((revealed: boolean) => void)
–

Called when the value is shown or hidden.

onValueChange
((value: string, eventDetails: Input.ChangeEventDetails) => void)
–

Callback fired when the value changes. Use when controlled.

revealed
boolean
–

Whether the value is shown in plain text. Use with onRevealedChange to control it.

revealIcon
ReactNode
–

Replaces this icon. Accepts any node; null renders no icon. Takes precedence over IconProvider.

revealWhileTyping
boolean
true

Whether typing into the empty field shows what is typed. When false, it stays dotted until revealed.

showCopy
boolean
true

Whether to show the button that copies the value.

size
number|"lg"|"sm"|"default"
default

The size of the component.

value
string | number | readonly string[]
–

The value of the input. Use when controlled.