
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
@asphalt-react/checkbox
Advanced tools
Checkboxes allow users to select one or more items from a list of items. There are three states in a Checkbox: Checked, Unchecked and Indeterminate. A Checkbox is in indeterminate state when it is neither checked nor unchecked.
To enhance accessibility, Checkboxes come with a label which is placed beside the component. The labels are of type text and they come in 3 sizes:
The size of the Checkbox remains the same for all label sizes. You can choose to skip the standard label and bind the Checkbox with you own label as well.
Checkboxes support most input type="checkbox" attributes like checked
, value
,onChange
& disabled
as well as data-* attributes. To get a handle of the underlying DOM element, use React Refs.
Add aria-label
or aria-labelledby
for cases where Checkbox does not have a dedicated label. For e.g. a checkbox used to select a table row.
Use id
and htmlFor
props to associate your custom label with the Checkbox.
import { Checkbox } from "@asphalt-react/checkbox"
<Checkbox value="yes" label="Are you a a GoTo employee?" />
Label for the Checkbox
type | required | default |
---|---|---|
string | false | "" |
Controls the label size. Size of the Checkbox remains same. Accepts s, m, l for small, medium & large
type | required | default |
---|---|---|
enum | false | "m" |
Set indeterminate state of Checkbox
type | required | default |
---|---|---|
bool | false | false |
FAQs
Checkbox
The npm package @asphalt-react/checkbox receives a total of 536 weekly downloads. As such, @asphalt-react/checkbox popularity was classified as not popular.
We found that @asphalt-react/checkbox demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.