@cdx-ui/utils 0.0.1-beta.16 → 0.0.1-beta.18
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 +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -50,6 +50,11 @@ Low-level form-field state used by the `Field` and `Input` primitives.
|
|
|
50
50
|
| `useFormControl(props)` | Merges component-level props with inherited form-control context. |
|
|
51
51
|
| `useFormControlContext()` | Reads form-control state from the nearest provider. |
|
|
52
52
|
| `FormControlContext` | The raw React context for form-control state. |
|
|
53
|
+
| `FormControlContextValue` | Type: full context shape including field state, `id`, `labelId`, `feedbackId`, `helpTextId`, and setters. |
|
|
54
|
+
| `FormControlState` | Type: `{ isRequired, isInvalid, isDisabled, isReadOnly }`. |
|
|
55
|
+
| `FormControlRootProps` | Type: input props for `useFormControlRoot`. |
|
|
56
|
+
| `FormControlRootReturn` | Type: return value of `useFormControlRoot` (`htmlProps` + context fields). |
|
|
57
|
+
| `FormControlFieldProps` | Type: props accepted by `useFormControl` (field state flags + `id`). |
|
|
53
58
|
|
|
54
59
|
## Further reading
|
|
55
60
|
|