-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add pages for each component, plus mkdocs entry
- Loading branch information
1 parent
f72dc98
commit 11709b3
Showing
8 changed files
with
64 additions
and
6 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,13 @@ | ||
# Button | ||
|
||
A button component, used to trigger events. | ||
|
||
## Extra Info | ||
|
||
Extra info here. | ||
|
||
## Props | ||
|
||
| Property | Type | Description | | ||
| ---------- | --------- | ---------------------------------------------- | | ||
| `disabled` | `boolean` | Disable the button, greyed out, not clickable. | |
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,8 @@ | ||
# Card | ||
|
||
A card component to embed in your page. | ||
|
||
## Props | ||
|
||
| Property | Type | Description | | ||
| -------- | ---- | ----------- | |
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,9 @@ | ||
# Dropdown | ||
|
||
A dropdown component to display a list of values for selection. | ||
|
||
## Props | ||
|
||
| Property | Type | Description | | ||
| --------- | ------- | -------------------------------------- | | ||
| `options` | `Array` | The available options in the dropdown. | |
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
# Logo | ||
|
||
The HOTOSM logo to embed in a webpage. | ||
|
||
## Props | ||
|
||
| Property | Type | Description | | ||
| -------- | ---- | ----------- | |
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,11 @@ | ||
# Popup | ||
|
||
A popup component, shown at the side of the viewport. | ||
|
||
Used to display things such as cookie banners. | ||
|
||
## Props | ||
|
||
| Property | Type | Description | | ||
| ---------- | ---------------- | -------------------- | | ||
| `children` | `ReactReactNode` | Nest child elements. | |
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,9 @@ | ||
# Toggle | ||
|
||
A toggle component, to trigger an event on click. | ||
|
||
## Props | ||
|
||
| Property | Type | Description | | ||
| --------- | --------- | ----------------------------------------------- | | ||
| `checked` | `boolean` | Set the state of the toggle: checked/unchecked. | |
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