
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@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 246 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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.