
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@sb1/ffe-dropdown-react
Advanced tools
Nedtrekksliste for valg av ett alternativ fra en liste. Wrapper rundt HTML `<select>` som videresender alle standard attributter.
Nedtrekksliste for valg av ett alternativ fra en liste. Wrapper rundt HTML <select> som videresender alle standard attributter.
npm install --save @sb1/ffe-dropdown-react
Full dokumentasjon: https://sparebank1.github.io/designsystem/
@import '@sb1/ffe-form/css/form.css';
import { Dropdown } from '@sb1/ffe-dropdown-react';
import { InputGroup } from '@sb1/ffe-form-react';
function DropdownMedLabel() {
const [value, setValue] = React.useState('jan');
return (
<InputGroup label="Velg måned">
<Dropdown value={value} onChange={e => setValue(e.target.value)}>
<option value="jan">Januar</option>
<option value="feb">Februar</option>
<option value="mar">Mars</option>
</Dropdown>
</InputGroup>
);
}
<InputGroup label="Antall">
<Dropdown inline={true} defaultValue="1">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</Dropdown>
</InputGroup>
import { Dropdown } from '@sb1/ffe-dropdown-react';
import { InputGroup } from '@sb1/ffe-form-react';
function DropdownMedFeil() {
const [value, setValue] = React.useState('');
const hasError = value === '';
return (
<InputGroup
label="Velg måned"
fieldMessage={hasError ? 'Du må velge en måned' : undefined}
>
{inputProps => (
<Dropdown
{...inputProps}
value={value}
onChange={e => setValue(e.target.value)}
aria-invalid={hasError ? 'true' : undefined}
>
<option value="">Velg ...</option>
<option value="jan">Januar</option>
<option value="feb">Februar</option>
</Dropdown>
)}
</InputGroup>
);
}
npm install
npm run build
npm start
Lokal Storybook kjører på http://localhost:6006/.
FAQs
Nedtrekksliste for valg av ett alternativ fra en liste. Wrapper rundt HTML `<select>` som videresender alle standard attributter.
The npm package @sb1/ffe-dropdown-react receives a total of 158 weekly downloads. As such, @sb1/ffe-dropdown-react popularity was classified as not popular.
We found that @sb1/ffe-dropdown-react demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.