-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add documentation pages and tiles for "Drawer" and "SingleSelect" com…
…ponents (#246) > [!WARNING] > PR darf nicht gemerged werden, bis public-ui/kolibri#6956 _gepublished_ ist. Das Readme für die Drawer ist fehlerhaft. Bitte siehe [#6956](public-ui/kolibri#6956)
- Loading branch information
Showing
13 changed files
with
188 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: Drawer | ||
description: Beschreibung, Spezifikation und Beispiele für die Drawer-Komponente. | ||
tags: | ||
- Drawer | ||
- Beschreibung | ||
- Spezifikation | ||
- Beispiele | ||
--- | ||
|
||
import Readme from '../../readmes/drawer/readme.md'; | ||
import { Configurator } from '@site/src/components/Configurator'; | ||
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact'; | ||
import { ExampleLink } from '@site/src/components/ExampleLink'; | ||
|
||
<Readme /> | ||
|
||
<ExampleLink component="drawer" /> | ||
|
||
## Live-Editor | ||
|
||
<LiveEditorCompact component="drawer" /> | ||
|
||
## Beispiele | ||
|
||
<Configurator component="drawer" sample="basic" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: SingleSelect | ||
description: Beschreibung, Spezifikation und Beispiele für die SingleSelect-Komponente. | ||
tags: | ||
- SingleSelect | ||
- Beschreibung | ||
- Spezifikation | ||
- Beispiele | ||
--- | ||
|
||
import Readme from '../../readmes/single-select/readme.md'; | ||
import { Configurator } from '@site/src/components/Configurator'; | ||
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact'; | ||
import { ExampleLink } from '@site/src/components/ExampleLink'; | ||
|
||
<Readme /> | ||
|
||
<ExampleLink component="single-select" /> | ||
|
||
## Live-Editor | ||
|
||
<LiveEditorCompact component="single-select" /> | ||
|
||
## Beispiele | ||
|
||
<Configurator component="single-select" sample="basic" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import React from 'react'; | ||
import { KolImage } from '@public-ui/react'; | ||
|
||
const Drawer = () => <KolImage _src="/assets/samples/drawer.png" _alt="" _sizes="20vw" />; | ||
|
||
export default Drawer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import { KolSingleSelect } from '@public-ui/react'; | ||
import { Option, StencilUnknown } from '@public-ui/components'; | ||
|
||
const COUNTRY_OPTIONS = [ | ||
{ label: 'Dänemark', value: 'dk' }, | ||
{ label: 'Deutschland', value: 'de' }, | ||
{ label: 'Dominica', value: 'dm' }, | ||
]; | ||
|
||
const SingleSelect = () => ( | ||
<KolSingleSelect | ||
_touched | ||
_label="Label" | ||
_placeholder="Placeholder" | ||
_required | ||
_options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} | ||
_value={'Deutschland'} | ||
/> | ||
); | ||
|
||
export default SingleSelect; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: Drawer | ||
description: Beschreibung, Spezifikation und Beispiele für die Drawer-Komponente. | ||
tags: | ||
- Drawer | ||
- Beschreibung | ||
- Spezifikation | ||
- Beispiele | ||
--- | ||
|
||
import Readme from '../../../readmes/drawer/readme.md'; | ||
import { Configurator } from '@site/src/components/Configurator'; | ||
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact'; | ||
import { ExampleLink } from '@site/src/components/ExampleLink'; | ||
|
||
<Readme /> | ||
|
||
<ExampleLink component="drawer" /> | ||
|
||
## Live-Editor | ||
|
||
<LiveEditorCompact component="drawer" /> | ||
|
||
## Beispiele | ||
|
||
<Configurator component="drawer" sample="basic" /> |
26 changes: 26 additions & 0 deletions
26
versioned_docs/version-2.0/30-components/single-select.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: SingleSelect | ||
description: Beschreibung, Spezifikation und Beispiele für die SingleSelect-Komponente. | ||
tags: | ||
- SingleSelect | ||
- Beschreibung | ||
- Spezifikation | ||
- Beispiele | ||
--- | ||
|
||
import Readme from '../../../readmes/single-select/readme.md'; | ||
import { Configurator } from '@site/src/components/Configurator'; | ||
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact'; | ||
import { ExampleLink } from '@site/src/components/ExampleLink'; | ||
|
||
<Readme /> | ||
|
||
<ExampleLink component="single-select" /> | ||
|
||
## Live-Editor | ||
|
||
<LiveEditorCompact component="single-select" /> | ||
|
||
## Beispiele | ||
|
||
<Configurator component="single-select" sample="basic" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
title: Drawer | ||
description: Beschreibung, Spezifikation und Beispiele für die Drawer-Komponente. | ||
tags: | ||
- Drawer | ||
- Beschreibung | ||
- Spezifikation | ||
- Beispiele | ||
--- | ||
|
||
import Readme from '../../../readmes/drawer/readme.md'; | ||
import { Configurator } from '@site/src/components/Configurator'; | ||
import { LiveEditorCompact } from '@site/src/components/LiveEditorCompact'; | ||
import { ExampleLink } from '@site/src/components/ExampleLink'; | ||
|
||
<Readme /> | ||
|
||
<ExampleLink component="drawer" /> | ||
|
||
## Live-Editor | ||
|
||
<LiveEditorCompact component="drawer" /> | ||
|
||
## Beispiele | ||
|
||
<Configurator component="drawer" sample="basic" /> |