Gathering detailed insights and metrics for @chakra-ui/form-control
Gathering detailed insights and metrics for @chakra-ui/form-control
Gathering detailed insights and metrics for @chakra-ui/form-control
Gathering detailed insights and metrics for @chakra-ui/form-control
@chakra-ui/textarea
Textarea React component for Chakra UI
@chakra-ui/input
A React component for input text field
@chakra-ui/select
description
@chakra-ui/c-form-control
Chakra UI Vue | Form control component is used to manage form controls such input fields checkbox and radio buttons it provides components and context that make your form fields accessible by default component
Chakra UI is a component system for building SaaS products with speed ⚡️
npm install @chakra-ui/form-control
Typescript
Module System
Node Version
NPM Version
@chakra-ui/cli@3.22.0
Updated on Jul 07, 2025
@chakra-ui/panda-preset@3.22.0
Updated on Jul 07, 2025
@chakra-ui/react@3.22.0
Updated on Jul 07, 2025
@chakra-ui/charts@3.22.0
Updated on Jul 07, 2025
@chakra-ui/panda-preset@3.21.1
Updated on Jun 28, 2025
@chakra-ui/charts@3.21.1
Updated on Jun 28, 2025
TypeScript (82.2%)
MDX (16.96%)
JavaScript (0.71%)
CSS (0.07%)
HTML (0.06%)
Dockerfile (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
39,354 Stars
10,958 Commits
3,443 Forks
201 Watchers
10 Branches
695 Contributors
Updated on Jul 13, 2025
Latest Version
2.2.0
Package Id
@chakra-ui/form-control@2.2.0
Unpacked Size
181.66 kB
Size
19.71 kB
File Count
41
NPM Version
9.8.1
Node Version
18.18.2
Published on
Nov 09, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
5
2
3
Form Control component is used to manage form controls such input fields, checkbox and radio buttons. It provides components and context that make your form fields accessible by default.
1yarn add @chakra-ui/form-control 2 3# or 4 5npm install @chakra-ui/form-control
1import { 2 FormControl, 3 FormLabel, 4 FormErrorMessage, 5 FormHelperText, 6 FormErrorIcon, 7} from "@chakra-ui/form-control"
The FormControl
component automatically provides the id
for the input
component to be fully accessible.
1<FormControl> 2 // automatically gets `htmlFor` 3 <FormLabel>First name:</FormLabel> 4 // automatically gets `id` and `aria-*` properties 5 <Input placeholder="Enter your first name..." /> 6 // automatically gets `id` and hides if `isInvalid` is passed to `FormControl` 7 <FormHelperText>Keep your first name short</FormHelperText> 8 // automatically gets `id` and shows if `isInvalid` is passed to `FormControl` 9 <FormErrorMessage>First name is invalid</FormErrorMessage> 10</FormControl>
1<FormControl as="fieldset"> 2 <FormLabel as="legend">Who is better:</FormLabel> 3 <CheckboxGroup> 4 <Checkbox>Naruto</Checkbox> 5 <Checkbox>Boruto</Checkbox> 6 </CheckboxGroup> 7 <FormErrorMessage>C'mon! You must select one</FormErrorMessage> 8</FormControl>
When the Input
component receives focus, it notifies the FormControl
and
adds data-focus
on the FormLabel
. Simply pass _focus
to the FormLabel
to style this state.
If isInvalid
is passed to the FormControl
, it notifies the Input
and
adds data-invalid
to the FormLabel
so you can change the styles of the
label.
If isDisabled
is passed to the FormControl
, it makes the Input
disabled,
and adds data-disabled
to the FormLabel
so you can change the styles of
the label.
To change the required indicator beside the FormLabel
, simply pass the
requiredIndicator
prop and set it to your custom indicator components.
1<FormControl as="fieldset"> 2 <FormLabel as="legend" requiredIndicator={CustomIndicator}> 3 Who is better: 4 </FormLabel> 5 <CheckboxGroup> 6 <Checkbox>Naruto</Checkbox> 7 <Checkbox>Boruto</Checkbox> 8 </CheckboxGroup> 9 <FormErrorMessage>C'mon! You must select one</FormErrorMessage> 10</FormControl>
1<FormControl 2 label="Tell us about yourself:" 3 helpText="Keep it short and sweet!" 4 errorText="C'mon! You must select one" 5> 6 <InputGroup> 7 <Input paddingRight="32px" /> 8 <InputRightElement> 9 <FormErrorIcon /> 10 </InputRightElement> 11 </InputGroup> 12</FormControl>
No vulnerabilities found.
Reason
30 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
7 existing vulnerabilities detected
Details
Reason
Found 5/25 approved changesets -- score normalized to 2
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More