Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add README file #4126

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions packages/jokul/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# @fremtind/jokul

Her finner du alle React-komponenter, stilark og diverse utilities

## Oppsett

Du trenger å importere en del basis-stiler for at komponenter skal fungere riktig,
dette gjøres med

```
@use '@fremtind/jokul/core/styles';
```

## SASS mixins

For å få tilgang til mixins vi tilbyr kan du i din .scss fil bruke

```
@use '@fremtind/jokul/core/jkl';
```

## Komponenter

Alle komponentene våre installeres fra denne pakka, enten fra roten

```
import { CalendarIcon, List, Link, Message, TextInput } from '@fremtind/jokul';
```

eller organisert i mapper dersom du foretrekker det

```
import { CalendarIcon } from '@fremtind/jokul/components/icon';
import { List } from '@fremtind/jokul/components/list';
import { Link } from '@fremtind/jokul/components/link';
import { Message } from '@fremtind/jokul/components/message';
import { TextInput } from '@fremtind/jokul/components/text-input';
```

For en full liste over komponenter kan du kikke i [components-mappa](src/components/)

## Stilark

Når du bruker en komponent må du også importere stilen

## Hooks

Akkurat som med komponenter kan disse importeres fra roten

```
import { useAnimatedDetails, useLocalStorage } from '@fremtind/jokul';
```

eller via /hooks stien

```
import { useAnimatedDetails, useLocalStorage } from '@fremtind/jokul/hooks';
```

For en full liste over komponenter kan du kikke i [hooks-mappa](src/hooks/)

## Utilities

Du gjettet riktig, disse kan også hentes fra roten av pakka

```
import { tabListener, unicode } from '@fremtind/jokul';
```

Eller via /utilities stien

```
import { tabListener, unicode } from '@fremtind/jokul/utilities';
```

For en full liste over utilities kan du kikke i [utilities-mappa](src/utilities/)
Loading