BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/scificn/textarea

Textarea

scificn/textarea
FreeComponent

Multi-line text input with label and error state.

Live preview

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

Install it

npx shadcn@latest add https://www.scificn.dev/r/textarea.json

Source

ui/textarea/textarea.tsxwww.scificn.dev/r/textarea.json
1import * as React from 'react'
2import { cn } from '@/lib/utils'
3
4export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
5 label?: string
6 error?: string
7}
8
9const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
10 ({ className, label, error, id, style, ...props }, ref) => {
11 const textareaId = id ?? label?.toLowerCase().replace(/\s+/g, '-')
12
13 return (
14 <div style={{ display: 'flex', flexDirection: 'column', gap: '0.35rem', width: '100%' }}>
15 {label && (
16 <label
17 htmlFor={textareaId}
18 style={{
19 fontSize: '0.65rem',
20 color: error ? 'var(--color-amber)' : 'var(--text-muted)',
21 letterSpacing: '0.12em',
22 textTransform: 'uppercase',
23 }}
24 >
25 {label}
26 </label>
27 )}
28
29 <textarea
30 ref={ref}
31 id={textareaId}
32 className={cn(
33 'w-full bg-[var(--surface)] font-mono text-[0.8rem]',
34 'border border-[var(--border)]',
35 'text-[var(--text-secondary)]',
36 'placeholder:text-[var(--text-muted)]',
37 'outline-none rounded-none',
38 'transition-all duration-150',
39 'focus:border-[var(--border-active)] focus:shadow-[var(--glow-green)]',
40 'disabled:opacity-40 disabled:cursor-not-allowed',
41 error && 'border-[var(--color-amber)] focus:shadow-[var(--glow-amber)]',
42 className
43 )}
44 style={{
45 padding: '0.5rem 0.75rem',
46 resize: 'none',
47 caretColor: 'var(--color-green)',
48 minHeight: '80px',
49 ...style,
50 }}
51 {...props}
52 />
53
54 {error && (
55 <span
56 style={{
57 fontSize: '0.65rem',
58 color: 'var(--color-amber)',
59 letterSpacing: '0.06em',
60 }}
61 >
62 ⚠ {error}
63 </span>
64 )}
65 </div>
66 )
67 }
68)
69Textarea.displayName = 'Textarea'
70
71export { Textarea }

Facts

Registry
scificn
Type
registry:ui
Access
Free
Files written
0
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
today

Go to the source

Docs on scificn www.scificn.dev baxy5/scificn-ui on GitHub Raw registry item This item as JSON

More from scificn

All 33 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AlertalertscificnComponentsFree1 dep
BadgebadgescificnComponentsFree1 dep
Bar Chartbar-chartscificnComponentsFreeno deps
BreadcrumbbreadcrumbscificnComponentsFreeno deps
ButtonbuttonscificnComponentsFree2 deps
CardcardscificnComponentsFreeno deps
CheckboxcheckboxscificnComponentsFree1 dep
DialogdialogscificnComponentsFree1 dep
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex