-
Notifications
You must be signed in to change notification settings - Fork 43
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
Docs for Tabs component #1927
base: master
Are you sure you want to change the base?
Docs for Tabs component #1927
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve med forbehold om at kommentarene blir fiksa 😄 se gjerne også ekstra over om ID
har blitt riktig overalt.
--- | ||
title: Tabs | ||
linktitle: Tabs | ||
description: A component that allows you to organize and switch between different content. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Britisk engelsk 😄
description: A component that allows you to organize and switch between different content. | |
description: A component that allows you to organise and switch between different content in tabs. |
Spurte også ChatGPT om en versjon, så du kan vurdere å bruke den eventuelt:
A component that enables you to organise and switch between different pieces of content using tabs.
|
||
## Usage | ||
|
||
The Tabs component allows you to organize and switch between different content sections by clicking on the header, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Tabs component allows you to organize and switch between different content sections by clicking on the header, | |
The `Tabs` component allows you to organise and switch between different content sections by clicking on the header, |
|
||
| **Property** | **Type** | **Description** | | ||
|-----------------|----------|-----------------------------------------------------------------------------------------------------| | ||
| `id` | string | Unique Id string for the component | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `id` | string | Unique Id string for the component | | |
| `id` | string | Unique ID string for the component. | |
|-----------------|----------|-----------------------------------------------------------------------------------------------------| | ||
| `id` | string | Unique Id string for the component | | ||
| `size` | string | Sets the size of the tabs. **Enum:**: `"small" \| "medium" \| "large"` <br/> **Default:** `medium`. | | ||
| `defaultTab` | string | Setting a tab that is default selected. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `defaultTab` | string | Setting a tab that is default selected. | | |
| `defaultTab` | string | Configuring a tab to be selected by default. | |
| `size` | string | Sets the size of the tabs. **Enum:**: `"small" \| "medium" \| "large"` <br/> **Default:** `medium`. | | ||
| `defaultTab` | string | Setting a tab that is default selected. | | ||
| `tabs` | Array | A list of tab objects containing the config(`id, title, icon, children`) for each tab. | | ||
| `tabs.id` | string | Unique id of the current tab. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bare synsing her altså 😅 du velger!
| `tabs.id` | string | Unique id of the current tab. | | |
| `tabs.id` | string | Unique ID of the tab in question. | |
{{</content-version-container>}} | ||
{{</content-version-selector>}} | ||
|
||
![Tabs eksempel](<tabs-example.png> "Tabs med to faner") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
![Tabs eksempel](<tabs-example.png> "Tabs med to faner") | |
![Tabs-eksempel](<tabs-example.png> "Tabs med to faner") |
|-----------------|----------|------------------------------------------------------------------------------------------------------| | ||
| `id` | string | Unik Id streng for komponenten. | | ||
| `size` | string | Setter størrelsen på fanen. **Enum:**: `"small" \| "medium" \| "large"` <br/> **Default:** `medium`. | | ||
| `defaultTab` | string | Anngir en fane som er valgt som standard. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `defaultTab` | string | Anngir en fane som er valgt som standard. | | |
| `defaultTab` | string | Angir en fane som er valgt som standard. | |
| `tabs.id` | string | Unik Id streng for fanen. | | ||
| `tabs.title` | string | Tittelen for fanen. | | ||
| `tabs.icon` | string | En URL streng som peker på ikonet til fanen. | | ||
| `tabs.children` | Array | Spesifiser hvilke komponenter du vil vise når fanen er aktiv. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `tabs.children` | Array | Spesifiser hvilke komponenter du vil vise når fanen er aktiv. | | |
| `tabs.children` | Array | Spesifiserer hvilke komponenter du vil vise når fanen er aktiv. | |
|
||
## Example | ||
|
||
Tabs with paragraphs as child elements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs with paragraphs as child elements. | |
`Tabs` with paragraphs as child elements. |
|
||
### defaultTab | ||
Dette kan settes til id'en til den spesifikke fanen du ønsker skal være valgt som standard. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Size?
Adding docs for Tabs component in English and Norwegian
Closes: #1933