
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@fremtind/jkl-button-react
Advanced tools
@fremtind/jkl-button-react
Bruk og prinsipper er beskrevet i @fremtind/jkl-button
stil-pakken.
Lær hvordan du kan ta i bruk Jøkul
Installér pakken med yarn add @fremtind/jkl-button-react
eller npm i @fremtind/jkl-button-react
. Stil-pakken blir automatisk installert som en avhengighet.
Importer både React-pakken (velg komponenten(e) du trenger) og stil-pakken i prosjektet ditt:
import { PrimaryButton, SecondaryButton, TertiaryButton } from "@fremtind/jkl-button-react";
import "@fremtind/jkl-button/button.min.css";
Komponentene tar følgende props:
children
: Påkrevd. Innholdet i knappen. ReactNode
onClick
: Påkrevd. Klikkhåndtering for knappen. Får en MouseEvent som første argument. MouseEventHandler<HTMLButtonElement>
forceCompact
: Angir at knappen skal vises i liten versjon uavhengig av skjermstørrelse. boolean
className
: Eventuell(e) css-klassenavn for komponenten. string
En enkel bruk av knapper kan se slik ut:
<SecondaryButton onClick={showDetails}>Vis detaljer</SecondaryButton>
Knapper kan ha annet innhold enn ren tekst, for eksempel for å vise aktivitet knyttet til knappens handling:
<PrimaryButton onClick={uploadFiles}>
{
isUploading
? <Loader inline negative textDescription="Laster opp filer">
: "Last opp"
}
</PrimaryButton>
FAQs
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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.