mayurrawte

Counter

Forms

About

A numeric stepper input with increment/decrement buttons and a typable value field, for adjusting bounded quantities like tool-call limits or item counts.

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

Code

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

Usage.tsx

import * as React from "react";
import { Counter } from "@/components/ui/counter";

export default function CounterDemo() {
  const [value, setValue] = React.useState(4);
  return <Counter value={value} onChange={setValue} min={1} max={20} />;
}

More by mayurrawte

View all
  • Skeleton

    Skeleton

    1
  • Accordion

    Accordion

  • Dropdown Menu

    Dropdown Menu

  • Avatar

    Avatar

  • Textarea

    Textarea

  • Loader

    Loader

  • Separator

    Separator

More in Forms

View all
  • Premium Auth

    Premium Auth

    547
  • Contact Card

    Contact Card

    1.1K
  • Login 2

    Login 2

    10
  • Form

    Form

    17
  • Form

    Form

    20
  • Login 1

    Login 1

    59
  • Authentication Card

    Authentication Card

    50
  • Card Studio

    Card Studio

    46