BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-lit-registry/input

Input

shadcn-lit-registry/input
FreeComponent

A text input component built with Lit and styled using Tailwind CSS. Supports various input types and states.

Install it

npx shadcn@latest add https://lit-registry.lloydrichards.dev/r/input.json

Source

registry/ui/input/input.stories.tslit-registry.lloydrichards.dev/r/input.json
1import "../button/button";
2import type { Meta, StoryObj } from "@storybook/web-components-vite";
3import { html } from "lit";
4
5type InputArgs = HTMLInputElement;
6
7/**
8 * Displays a form input field or a component that looks like an input field.
9 */
10const meta: Meta<InputArgs> = {
11 title: "ui/Input",
12 component: "input",
13 tags: ["autodocs"],
14 argTypes: {
15 type: {
16 control: "text",
17 },
18 placeholder: {
19 control: "text",
20 },
21 disabled: {
22 control: "boolean",
23 },
24 },
25 args: {
26 type: "email",
27 placeholder: "Email",
28 disabled: false,
29 },
30 parameters: {
31 layout: "centered",
32 },
33 render: (args) =>
34 html`<input
35 type=${args.type as any}
36 class="ui-input"
37 placeholder=${args.placeholder}
38 ?disabled=${args.disabled}
39 class="w-96"
40 ></input>`,
41};
42
43export default meta;
44
45type Story = StoryObj<InputArgs>;
46
47/**
48 * The default form of the input field.
49 */
50export const Default: Story = {};
51
52/**
53 * Use the `disabled` prop to make the input non-interactive and appears faded,
54 * indicating that input is not currently accepted.
55 */
56export const Disabled: Story = {
57 args: { disabled: true },
58};
59
60/**
61 * Use the `Label` component to includes a clear, descriptive label above or
62 * alongside the input area to guide users.
63 */
64export const WithLabel: Story = {
65 render: (args) => html`
66 <div class="grid gap-1.5">
67 <label for="email" class="ui-label">
68 ${args.placeholder}
69 </label>
70 <input
71 id="email" class="ui-input"
72 type=${args.type as any}
73 placeholder=${args.placeholder}
74 ?disabled=${args.disabled}
75 class="w-96"
76 ></input>
77 </div>
78 `,
79};
80
81/**
82 * Use a text element below the input field to provide additional instructions
83 * or information to users.
84 */
85export const WithHelperText: Story = {
86 render: (args) => html`
87 <div class="grid gap-1.5">
88 <label for="email-2" class="ui-label">
89 ${args.placeholder}
90 </label>
91 <input
92 id="email-2" class="ui-input"
93 type=${args.type as any}
94 placeholder=${args.placeholder}
95 ?disabled=${args.disabled}
96 class="w-96"
97 ></input>
98 <p class="text-sm text-foreground/60">Enter your email address.</p>
99 </div>
100 `,
101};
102
103/**
104 * Use the `Button` component to indicate that the input field can be submitted
105 * or used to trigger an action.
106 */
107export const WithButton: Story = {
108 render: (args) => html`
109// … truncated

What it pulls in

Other registry items

  • @lit/button

Files it writes

  • registry/ui/input/input.stories.ts

Facts

Registry
shadcn-lit-registry
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-09
Last confirmed
today

Go to the source

lit-registry.lloydrichards.dev lloydrichards/proj_shadcn-lit-registry on GitHub Raw registry item This item as JSON

More from shadcn-lit-registry

All 26 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Accordionaccordionshadcn-lit-registryComponentsFree1 dep · 2 files
Avataravatarshadcn-lit-registryComponentsFreeno deps · 2 files
Badgebadgeshadcn-lit-registryComponentsFreeno deps · 2 files
Buttonbuttonshadcn-lit-registryComponentsFree1 dep · 2 files
Cardcardshadcn-lit-registryComponentsFreeno deps · 2 files
Checkboxcheckboxshadcn-lit-registryComponentsFree1 dep · 2 files
Collapsiblecollapsibleshadcn-lit-registryComponentsFree1 dep · 2 files
Commandcommandshadcn-lit-registryComponentsFree1 dep · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex