Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
@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
Jøkul react button components
The npm package @fremtind/jkl-button-react receives a total of 301 weekly downloads. As such, @fremtind/jkl-button-react popularity was classified as not popular.
We found that @fremtind/jkl-button-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.