@gridkitjs/forms 0.0.0-dev-20261206092422

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Blagoja Blazhevski
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # @gridkitjs/forms
2
+
3
+ React form inputs and form structure for GridKit, styled by the GridKit
4
+ themes to match the grid. Built on
5
+ [`@gridkitjs/forms-core`](https://www.npmjs.com/package/@gridkitjs/forms-core)
6
+ and [`@gridkitjs/forms-dom`](https://www.npmjs.com/package/@gridkitjs/forms-dom).
7
+
8
+ > **Early development.** The API is still moving and may break between minor
9
+ > versions.
10
+
11
+ ```bash
12
+ pnpm add @gridkitjs/forms @gridkitjs/theme-tailwind
13
+ ```
14
+
15
+ Import the forms stylesheet from either theme, `@gridkitjs/theme-tailwind`
16
+ after Tailwind or `@gridkitjs/theme-css` without it, beside the grid's
17
+ `styles.css` or alone:
18
+
19
+ ```css
20
+ @import "tailwindcss";
21
+ @import "@gridkitjs/theme-tailwind/forms.css";
22
+ ```
23
+
24
+ ```tsx
25
+ import { Checkbox, Field, Form, TextInput } from "@gridkitjs/forms";
26
+
27
+ <Form aria-label="Customer" onSubmit={save}>
28
+ <Field label="Name" required>
29
+ <TextInput name="name" />
30
+ </Field>
31
+ <Checkbox name="newsletter" label="Send me the newsletter" />
32
+ <button type="submit">Save</button>
33
+ </Form>;
34
+ ```
35
+
36
+ The types an app writes against are exported from this package, so an app
37
+ imports from it alone.
38
+
39
+ Full documentation: [github.com/gridkitjs/gridkitjs](https://github.com/gridkitjs/gridkitjs#readme)
40
+
41
+ ## License
42
+
43
+ MIT © Blagoja Blazhevski