
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@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 189 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.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.