Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@gov.au/control-input
Advanced tools
Control inputs include radio buttons and checkboxes. They allow users to select one or more options.
Control inputs include radio buttons and checkboxes. They allow users to select one or more options.
yarn add @gov.au/control-input
npm install @gov.au/control-input
Usage:
import { AUcheckbox, AUradio } from './control-input.js';
<AUradio label="Yes" name="has_email" value="yes" id="yes" />
<AUradio label="No" name="has_email" value="no" id="no" />
<AUradio label="Maybe" name="has_email" value="maybe" id="maybe" />
<AUcheckbox label="Has email?" name="has_email" id="has-email" />
All props:
<AUradio
label="The label" {/* The label of the radio button */}
id="radio-ex" {/* The id of the radio button*/}
alt={ false } {/* An alternate variation of the component */}
small={ false } {/* The small variation of the component */}
dark={ false } {/* The dark variation of the component */}
/>
<AUcheckbox
label="The label" {/* The label of the checkbox */}
id="checkbox-ex" {/* The id of the radio button*/}
alt={ false } {/* An alternate variation of the component */}
small={ false } {/* The small variation of the component */}
dark={ false } {/* The dark variation of the component */}
/>
(💡 additional props are spread onto the component)
For more details have a look at the usage example.
control-input
└─ core
The visual test: https://auds.service.gov.au/packages/control-input/tests/site/
margin-top
for control input block that is not followed by another control input block. Removed unused Fragment
React importchecked
attribute with defaultChecked
on control inputs examplesCopyright (c) Commonwealth of Australia. Licensed under MIT.
FAQs
Control inputs include radio buttons and checkboxes. They allow users to select one or more options.
The npm package @gov.au/control-input receives a total of 62 weekly downloads. As such, @gov.au/control-input popularity was classified as not popular.
We found that @gov.au/control-input demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.