
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-chips-react
Advanced tools
Chip-komponenter i tre varianter: Chip (standard), ChipRemovable (med fjern-knapp) og ChipSelectable (kan velges/avvelges).
npm install --save @sb1/ffe-chips-react
Full dokumentasjon: https://sparebank1.github.io/designsystem/
@import '@sb1/ffe-chips/css/chip.css';
import { Chip } from '@sb1/ffe-chips-react';
import { Icon } from '@sb1/ffe-icons-react';
<Chip size="sm" onClick={() => console.log('Klikket')}>
Liten chip
</Chip>
// Som lenke
<Chip as="a" href="/side" size="sm">Gå til side</Chip>
// Med ikon
<Chip size="sm" leftIcon={<Icon size="sm" fileUrl="path/to/icon.svg" />}>
Med ikon
</Chip>
import { useState } from 'react';
import { ChipRemovable } from '@sb1/ffe-chips-react';
function MyComponent() {
const [items, setItems] = useState(['Filter 1', 'Filter 2']);
return (
<div style={{ display: 'flex', gap: '8px' }}>
{items.map(item => (
<ChipRemovable
key={item}
size="sm"
onClick={() => setItems(items.filter(i => i !== item))}
>
{item}
</ChipRemovable>
))}
</div>
);
}
import { useState } from 'react';
import { ChipSelectable } from '@sb1/ffe-chips-react';
function MyComponent() {
const [isSelected, setIsSelected] = useState(false);
return (
<ChipSelectable
size="sm"
isSelected={isSelected}
onClick={() => setIsSelected(!isSelected)}
>
{isSelected ? 'Valgt' : 'Velg meg'}
</ChipSelectable>
);
}
Komponenter er generiske og støtter polymorfisme via as-propen. TypeScript infererer riktige props basert på elementtypen.
npm install && npm run build && npm start
Lokal Storybook kjører på http://localhost:6006/
FAQs
React implementation of ffe-chips component
The npm package @sb1/ffe-chips-react receives a total of 67 weekly downloads. As such, @sb1/ffe-chips-react popularity was classified as not popular.
We found that @sb1/ffe-chips-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.