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

@fremtind/jkl-accordion-react

Package Overview
Dependencies
Maintainers
2
Versions
297
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fremtind/jkl-accordion-react

Jøkul react accordion component

  • 1.1.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
191
increased by56.56%
Maintainers
2
Weekly downloads
 
Created
Source

@fremtind/jkl-accordion-react

Beskrivelse

Bruk og prinsipper er beskrevet i @fremtind/jkl-accordion stil-pakken.

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-accordion-react eller npm i @fremtind/jkl-accordion-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 { Accordion, AccordionItem } from "@fremtind/jkl-accordion-react";
import "@fremtind/jkl-accordion/accordion.min.css";

Bruk

En enkel bruk av Accordion kan se slik ut:

<Accordion>
    <AccordionItem title="Accordion #1">Her er det som går inni accordion. Det kan være så mangt.</AccordionItem>
    <AccordionItem title="Accordion #2">Her er annet innhold til accordion.</AccordionItem>
</Accordion>

Merk at AccordionItem kan ha annet innhold enn ren tekst. Komponenten tar inn prop-en children som er av typen ReactNode.

Dersom det er ønskelig at komponenten er utvidet når komponenten lastes inn kan prop-en startExpanded benyttes.

Keywords

FAQs

Package last updated on 07 Jan 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