BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/mcoli-ui-registry/mc-textarea

MicroClub Textarea

mcoli-ui-registry/mc-textarea
FreeComponent

A multi-line text input with field integration and block addons for MicroClub UI

Live preview

live · rendered by the registry
Rendered by mcoli-ui-registry on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://mcoli-ui.microclub.info/r/mc-textarea.json

Source

registry/ui/mc-textarea.tsxmcoli-ui.microclub.info/r/mc-textarea.json
1'use client';
2
3import * as React from 'react';
4
5import { cn } from '@/lib/utils';
6
7export interface McTextareaProps extends React.ComponentProps<'textarea'> {
8 /** Label rendered above the textarea. */
9 label?: React.ReactNode;
10 /** Help text below the textarea. Replaced by error when present. */
11 description?: React.ReactNode;
12 /** Truthy = error state. ReactNode = renders the message. `true` = red border only. */
13 error?: React.ReactNode;
14 /** Block-start addon (toolbar, controls above the textarea). */
15 addonTop?: React.ReactNode;
16 /** Block-end addon (character count, action buttons below the textarea). */
17 addonBottom?: React.ReactNode;
18}
19
20function McTextarea({
21 className,
22 label,
23 description,
24 error,
25 addonTop,
26 addonBottom,
27 id,
28 disabled,
29 required,
30 rows = 3,
31 ...props
32}: McTextareaProps) {
33 const generatedId = React.useId();
34 const textareaId = id ?? generatedId;
35
36 const hasError = !!error;
37 const errorMessage = typeof error === 'boolean' ? null : error;
38 const showError = hasError && !!errorMessage;
39 const showDescription = !hasError && !!description;
40 const messageId = showError
41 ? `${textareaId}-error`
42 : showDescription
43 ? `${textareaId}-description`
44 : undefined;
45
46 const handleGroupClick = (e: React.MouseEvent<HTMLDivElement>) => {
47 const target = e.target as HTMLElement;
48 if (!target.closest('button, a, input, select, textarea, [tabindex]')) {
49 e.currentTarget.querySelector<HTMLTextAreaElement>('[data-slot="textarea"]')?.focus();
50 }
51 };
52
53 return (
54 <div data-slot="textarea-root" className={cn('flex flex-col gap-1.5', className)}>
55 {label && (
56 <label
57 data-slot="textarea-label"
58 htmlFor={textareaId}
59 className="text-sm font-medium text-muted-foreground"
60 >
61 {label}
62 </label>
63 )}
64
65 <div
66 data-slot="textarea-group"
67 data-error={hasError || undefined}
68 data-disabled={disabled || undefined}
69 role="group"
70 onClick={handleGroupClick}
71 className={cn(
72 // Structure
73 'group/textarea flex min-w-0 cursor-text flex-col rounded-lg border border-border bg-input shadow-xs transition-all',
74 // Focus ring
75 'focus-within:ring-4 focus-within:ring-ring',
76 // Error
77 'data-error:border-destructive',
78 'data-error:focus-within:border-destructive data-error:focus-within:ring-destructive/20',
79// … truncated

Files it writes

  • registry/ui/mc-textarea.tsx

Facts

Registry
mcoli-ui-registry
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-07
Last confirmed
today

Go to the source

Docs on mcoli-ui-registry mcoli-ui.microclub.info MicroClub-USTHB/mcoli-ui on GitHub Raw registry item This item as JSON

More from mcoli-ui-registry

All 42 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
MicroClub Accordionmc-accordionmcoli-ui-registryComponentsFree2 deps
MicroClub Alertmc-alertmcoli-ui-registryComponentsFree1 dep
MicroClub Alert Dialogmc-alert-dialogmcoli-ui-registryComponentsFree1 dep
MicroClub Avatarmc-avatarmcoli-ui-registryComponentsFree1 dep
MicroClub Badgemc-badgemcoli-ui-registryComponentsFree1 dep
MicroClub Breadcrumbmc-breadcrumbmcoli-ui-registryComponentsFree2 deps
MicroClub Buttonmc-buttonmcoli-ui-registryComponentsFree2 deps
MicroClub Calendarmc-calendarmcoli-ui-registryComponentsFree3 deps

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