-
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stack): add
Stack
component (#1963)
- Loading branch information
Showing
10 changed files
with
470 additions
and
2 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Component Index | ||
|
||
> 168 components exported from [email protected]. | ||
> 169 components exported from [email protected]. | ||
## Components | ||
|
||
|
@@ -127,6 +127,7 @@ | |
- [`SkipToContent`](#skiptocontent) | ||
- [`Slider`](#slider) | ||
- [`SliderSkeleton`](#sliderskeleton) | ||
- [`Stack`](#stack) | ||
- [`StructuredList`](#structuredlist) | ||
- [`StructuredListBody`](#structuredlistbody) | ||
- [`StructuredListCell`](#structuredlistcell) | ||
|
@@ -3618,6 +3619,32 @@ None. | |
| mouseenter | forwarded | -- | | ||
| mouseleave | forwarded | -- | | ||
|
||
## `Stack` | ||
|
||
### Types | ||
|
||
```ts | ||
export type StackScale = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13; | ||
``` | ||
|
||
### Props | ||
|
||
| Prop name | Required | Kind | Reactive | Type | Default value | Description | | ||
| :---------- | :------- | :--------------- | :------- | ------------------------------------------- | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| gap | No | <code>let</code> | No | <code>StackScale | string</code> | <code>1</code> | Specify the gap between items in the stack.<br />The scale maps to Carbon layout values.<br />Alternatively, specify a custom value (e.g., "200px"). | | ||
| orientation | No | <code>let</code> | No | <code>"vertical" | "horizontal"</code> | <code>"vertical"</code> | Specify the orientation of the stack. | | ||
| tag | No | <code>let</code> | No | <code>keyof HTMLElementTagNameMap</code> | <code>"div"</code> | Specify the tag name | | ||
|
||
### Slots | ||
|
||
| Slot name | Default | Props | Fallback | | ||
| :-------- | :------ | :---- | :------- | | ||
| -- | Yes | -- | -- | | ||
|
||
### Events | ||
|
||
None. | ||
|
||
## `StructuredList` | ||
|
||
### Props | ||
|
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
Oops, something went wrong.