hemingtsai

ZInput

Forms

About

A single-line text input with sm/md/lg size variants, prefix/suffix slots, a clearable button, and mono/tabular numerals for IDs and ports — ported to React from hemingtsai's Zemponet Vue UI library (MIT licensed).

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds ZInput to your project and fits it to your theme.

Code

How ZInput is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import * as React from "react";
import ZInput from "@/components/ui/zinput";

export default function ZInputDemo() {
  const [name, setName] = React.useState("");

  return (
    <div className="w-full max-w-sm">
      <ZInput
        value={name}
        onChange={(v) => setName(String(v))}
        placeholder="例如 zemponet"
      />
    </div>
  );
}

More by hemingtsai

View all
  • Z Toast Host

    Z Toast Host

  • ZStat

    ZStat

  • Status Banner

    Status Banner

  • ZCheckbox

    ZCheckbox

  • Floating Action Button

    Floating Action Button

  • Button Group

    Button Group

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19