Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fremtind/jkl-icon-button-react

Package Overview
Dependencies
Maintainers
2
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fremtind/jkl-icon-button-react

Jøkul react icon-button components

  • 0.2.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
510
increased by16.44%
Maintainers
2
Weekly downloads
 
Created
Source

@fremtind/jkl-icon-button-react

Beskrivelse

Se portalen for bruk og prinsipper.

Kom i gang

Lær hvordan du kan ta i bruk Jøkul

Bruk av React-pakken

Installasjon

  1. Installér pakken med yarn add @fremtind/jkl-icon-button-react eller npm i @fremtind/jkl-icon-button-react. Stil-pakken blir automatisk installert som en avhengighet.

  2. Importer både React-pakken (velg komponenten(e) du trenger) og stil-pakken i prosjektet ditt:

import { IconButton } from "@fremtind/jkl-icon-button-react";
import "@fremtind/jkl-icon-button/icon-button.min.css";

Bruk

Komponentene tar følgende props:

  • iconType: Angir hvilken svg ikon skal vises (f.eks: search, calendar, clear). string
  • buttonTitle: Serverer som hjelpetekst. string
  • onClick: Påkrevd. Klikkhåndtering for knappen. Får en MouseEvent som første argument. MouseEventHandler<HTMLButtonElement>

En enkel bruk av knapper kan se slik ut:

<IconButton iconType="calendar" onClick={onClick} buttonTitle="Vis kalendar" />

Keywords

FAQs

Package last updated on 18 May 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc