@behivetech/atoms.textarea 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -9
- package/docs.json +22 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
A bare multi-line text input — the native `<textarea>` is this component's own root element. It has no built-in label/hint/error; wrap it in `FormField` for that chrome. Works standalone too — not every textarea needs the full form suite.
|
|
4
4
|
|
|
5
|
+
Docs: https://bht-galaxy.vercel.app/behivetech/atoms/textarea
|
|
6
|
+
|
|
5
7
|
## Usage
|
|
6
8
|
|
|
7
9
|
```jsx
|
|
@@ -18,12 +20,3 @@ const [value, setValue] = useState('');
|
|
|
18
20
|
```
|
|
19
21
|
|
|
20
22
|
Pass `aria-invalid="true"` to visually mark the field as invalid (pair with `FormField`'s `error` prop for the message).
|
|
21
|
-
|
|
22
|
-
## Props
|
|
23
|
-
|
|
24
|
-
Extends the native `<textarea>` element's attributes with:
|
|
25
|
-
|
|
26
|
-
| Prop | Type | Default | Description |
|
|
27
|
-
| ----------- | -------- | ------- | ---------------------- |
|
|
28
|
-
| `rows` | `number` | `4` | Number of visible rows |
|
|
29
|
-
| `className` | `string` | — | Additional class names |
|
package/docs.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://github.com/behivetech/bht-component-registry/docs.schema.json",
|
|
3
|
+
"version": 2,
|
|
4
|
+
"generatedAt": "2026-10-23T19:01:20.312Z",
|
|
5
|
+
"docs": [
|
|
6
|
+
{
|
|
7
|
+
"displayName": "Textarea",
|
|
8
|
+
"description": "Bare textarea — the native `<textarea>` is this component's own root\nelement, no built-in label/hint/error. Wrap it in `FormField` for that\nchrome: `<FormField label=\"...\" htmlFor=\"x\"><Textarea id=\"x\" /></FormField>`.",
|
|
9
|
+
"extendsNative": true,
|
|
10
|
+
"props": [
|
|
11
|
+
{
|
|
12
|
+
"name": "className",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"required": false,
|
|
15
|
+
"defaultValue": null,
|
|
16
|
+
"description": "Additional class names to merge with the component root element"
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"functions": []
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@behivetech/atoms.textarea",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"description": "A bare multi-line text input — the native `<textarea>` is this component's own root element. It has no built-in label/hint/error; wrap it in `FormField` for that chrome. Works standalone too — not every textarea needs the full form suite.",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"private": false,
|
|
7
8
|
"exports": {
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"tsup": "^8.5.1",
|
|
37
38
|
"typescript": "^6.0.3",
|
|
38
39
|
"vitest": "^4.1.10",
|
|
39
|
-
"@behivetech/forms.form-field": "0.3.
|
|
40
|
+
"@behivetech/forms.form-field": "0.3.4",
|
|
40
41
|
"@bht-component-registry/class-names": "0.0.6",
|
|
41
42
|
"@bht-component-registry/env": "0.1.0"
|
|
42
43
|
},
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
"url": "https://github.com/behivetech/bht-galaxy.git",
|
|
46
47
|
"directory": "registry/behivetech/atoms/textarea"
|
|
47
48
|
},
|
|
49
|
+
"homepage": "https://bht-galaxy.vercel.app/behivetech/atoms/textarea",
|
|
48
50
|
"publishConfig": {
|
|
49
51
|
"registry": "https://registry.npmjs.org",
|
|
50
52
|
"access": "public",
|