-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(about-section): new component [khcp-8589] (#782)
* feat(about-section): new component [khcp-8589] * fix(*): lint * fix(*): alignment * fix(*): pr feedback * fix(*): pr feedback Co-authored-by: Adam DeHaven <[email protected]> * fix(*): pr feedback * fix(*): lint * fix(kcard): styles * fix(*): lint * fix(*): add docs * fix(*): loading state * fix(*): text * test(about-section): add component test * fix(*): test ext * fix(*): tests * fix(*): tests * fix(*): pr feedback --------- Co-authored-by: Adam DeHaven <[email protected]>
- Loading branch information
1 parent
9d681c3
commit d975afb
Showing
8 changed files
with
615 additions
and
4 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
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,102 @@ | ||
# AppAboutSection.vue | ||
|
||
A Kong UI dynamic about section component. | ||
|
||
- [Features](#features) | ||
- [Requirements](#requirements) | ||
- [Usage](#usage) | ||
- [Install](#install) | ||
- [Props](#props) | ||
- [Slots](#slots) | ||
|
||
## Features | ||
|
||
- Reactive updates based on `prop` value changes :rocket: | ||
- Slottable areas for displaying custom content | ||
|
||
## Requirements | ||
|
||
- `vue` must be initialized in the host application | ||
- `@kong/kongponents` must be available as a `dependency` in the host application, along with the package's style imports. [See here for instructions on installing Kongponents](https://kongponents.konghq.com/#globally-install-all-kongponents). | ||
|
||
## Usage | ||
|
||
### Install | ||
|
||
[See instructions for installing the `@kong-ui-public/app-layout` package.](../README.md#install) | ||
|
||
### Props | ||
|
||
#### `title` | ||
|
||
- type: `String` | ||
- required: `false` | ||
- default: `''` | ||
|
||
The title text of the about section. | ||
|
||
#### `description` | ||
|
||
- type: `String` | ||
- required: `false` | ||
- default: `''` | ||
|
||
Descriptive text displayed below the `title` | ||
|
||
#### `created` | ||
|
||
- type: `String` | ||
- required: `false` | ||
- default: `''` | ||
|
||
Created timestamp displayed to the left of the `actions` slot. | ||
|
||
#### `createdLabel` | ||
|
||
- type: `String` | ||
- required: `false` | ||
- default: `''` | ||
|
||
Label text for the `created` timestamp, defaults to `Created`. | ||
|
||
#### `modified` | ||
|
||
- type: `String` | ||
- required: `false` | ||
- default: `''` | ||
|
||
Modified timestamp displayed to the left of the `actions` slot. | ||
|
||
#### `modifiedLabel` | ||
|
||
- type: `String` | ||
- required: `false` | ||
- default: `''` | ||
|
||
Label text for the `modified` timestamp, defaults to `Modified`. | ||
|
||
#### `isLoading` | ||
|
||
- type: `Boolean` | ||
- required: `false` | ||
- default: `false` | ||
|
||
Display the loading state or not. | ||
|
||
### Slots | ||
|
||
#### `actions` | ||
|
||
Content displayed opposite the title. | ||
|
||
#### `default` | ||
|
||
Main content to be displayed in the section | ||
|
||
#### `divider-section` | ||
|
||
Additional content displayed below the main content, separated with a horizontal divider. | ||
|
||
--- | ||
|
||
[← Back to `@kong-ui-public/app-layout` docs](../README.md) |
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
Oops, something went wrong.