-
-
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.
- Loading branch information
1 parent
626fd99
commit fe5c571
Showing
17 changed files
with
33,037 additions
and
65 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 | ||
|
||
> 155 components exported from [email protected]. | ||
> 157 components exported from [email protected]. | ||
## Components | ||
|
||
|
@@ -97,6 +97,7 @@ | |
- [`RadioButtonGroup`](#radiobuttongroup) | ||
- [`RadioButtonSkeleton`](#radiobuttonskeleton) | ||
- [`RadioTile`](#radiotile) | ||
- [`RadioTileGroup`](#radiotilegroup) | ||
- [`Row`](#row) | ||
- [`Search`](#search) | ||
- [`SearchSkeleton`](#searchskeleton) | ||
|
@@ -105,6 +106,7 @@ | |
- [`SelectItemGroup`](#selectitemgroup) | ||
- [`SelectSkeleton`](#selectskeleton) | ||
- [`SelectableTile`](#selectabletile) | ||
- [`SelectableTileGroup`](#selectabletilegroup) | ||
- [`SideNav`](#sidenav) | ||
- [`SideNavItems`](#sidenavitems) | ||
- [`SideNavLink`](#sidenavlink) | ||
|
@@ -2692,15 +2694,17 @@ None. | |
|
||
### Props | ||
|
||
| Prop name | Kind | Reactive | Type | Default value | Description | | ||
| :-------------- | :--------------- | :------- | :------------------- | ------------------------------------------------ | -------------------------------------------------------- | | ||
| checked | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to check the tile | | ||
| light | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the light variant | | ||
| value | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the value of the radio input | | ||
| tabindex | <code>let</code> | No | <code>string</code> | <code>"0"</code> | Specify the tabindex | | ||
| iconDescription | <code>let</code> | No | <code>string</code> | <code>"Tile checkmark"</code> | Specify the ARIA label for the radio tile checkmark icon | | ||
| id | <code>let</code> | No | <code>string</code> | <code>"ccs-" + Math.random().toString(36)</code> | Set an id for the input element | | ||
| name | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify a name attribute for the input | | ||
| Prop name | Kind | Reactive | Type | Default value | Description | | ||
| :-------------- | :--------------- | :------- | :---------------------------------------- | ------------------------------------------------ | -------------------------------------------------------- | | ||
| ref | <code>let</code> | Yes | <code>null | HTMLInputElement</code> | <code>null</code> | Obtain a reference to the input HTML element | | ||
| light | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to enable the light variant | | ||
| checked | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to check the tile | | ||
| value | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the value of the radio input | | ||
| title | <code>let</code> | No | <code>string</code> | <code>"title"</code> | Specify the title of the selectable tile | | ||
| tabindex | <code>let</code> | No | <code>string</code> | <code>"0"</code> | Specify the tabindex | | ||
| iconDescription | <code>let</code> | No | <code>string</code> | <code>"Tile checkmark"</code> | Specify the ARIA label for the radio tile checkmark icon | | ||
| id | <code>let</code> | No | <code>string</code> | <code>"ccs-" + Math.random().toString(36)</code> | Set an id for the input element | | ||
| name | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify a name attribute for the input | | ||
|
||
### Slots | ||
|
||
|
@@ -2719,6 +2723,29 @@ None. | |
| mouseenter | forwarded | -- | | ||
| mouseleave | forwarded | -- | | ||
|
||
## `RadioTileGroup` | ||
|
||
### Props | ||
|
||
| Prop name | Kind | Reactive | Type | Default value | Description | | ||
| :------------ | :--------------- | :------- | :------------------- | ------------------ | ----------------------------------------- | | ||
| selectedValue | <code>let</code> | Yes | <code>string</code> | -- | Specify the selected tile value | | ||
| disabled | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable the tile group | | ||
| light | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the light variant | | ||
| legend | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the legend text | | ||
|
||
### Slots | ||
|
||
| Slot name | Default | Props | Fallback | | ||
| :-------- | :------ | :---- | :------- | | ||
| -- | Yes | -- | -- | | ||
|
||
### Events | ||
|
||
| Event name | Type | Detail | | ||
| :--------- | :--------- | :----- | | ||
| select | dispatched | -- | | ||
|
||
## `Row` | ||
|
||
### Props | ||
|
@@ -2904,8 +2931,8 @@ None. | |
| Prop name | Kind | Reactive | Type | Default value | Description | | ||
| :-------------- | :--------------- | :------- | :---------------------------------------- | ------------------------------------------------ | ------------------------------------------------------------- | | ||
| ref | <code>let</code> | Yes | <code>null | HTMLInputElement</code> | <code>null</code> | Obtain a reference to the input HTML element | | ||
| light | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to enable the light variant | | ||
| selected | <code>let</code> | Yes | <code>boolean</code> | <code>false</code> | Set to `true` to select the tile | | ||
| light | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the light variant | | ||
| title | <code>let</code> | No | <code>string</code> | <code>"title"</code> | Specify the title of the selectable tile | | ||
| value | <code>let</code> | No | <code>string</code> | <code>"value"</code> | Specify the value of the selectable tile | | ||
| tabindex | <code>let</code> | No | <code>string</code> | <code>"0"</code> | Specify the tabindex | | ||
|
@@ -2929,6 +2956,29 @@ None. | |
| mouseleave | forwarded | -- | | ||
| keydown | forwarded | -- | | ||
|
||
## `SelectableTileGroup` | ||
|
||
### Props | ||
|
||
| Prop name | Kind | Reactive | Type | Default value | Description | | ||
| :------------- | :--------------- | :------- | :------------------- | ------------------ | ----------------------------------------- | | ||
| selectedValues | <code>let</code> | Yes | <code>string</code> | <code>[]</code> | Specify the selected tile's | | ||
| disabled | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable the tile group | | ||
| light | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to enable the light variant | | ||
| legend | <code>let</code> | No | <code>string</code> | <code>""</code> | Specify the legend text | | ||
|
||
### Slots | ||
|
||
| Slot name | Default | Props | Fallback | | ||
| :-------- | :------ | :---- | :------- | | ||
| -- | Yes | -- | -- | | ||
|
||
### Events | ||
|
||
| Event name | Type | Detail | | ||
| :--------- | :--------- | :----- | | ||
| select | dispatched | -- | | ||
|
||
## `SideNav` | ||
|
||
### 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
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,36 +1,42 @@ | ||
--- | ||
components: ["SelectableTile"] | ||
components: ["SelectableTile", "SelectableTileGroup"] | ||
--- | ||
|
||
<script> | ||
import { SelectableTile } from "carbon-components-svelte"; | ||
import { SelectableTile, SelectableTileGroup } from "carbon-components-svelte"; | ||
import Preview from "../../components/Preview.svelte"; | ||
</script> | ||
|
||
### Multi-selectable tiles | ||
|
||
<div role="group" aria-label="selectable tiles"> | ||
<SelectableTile selected> | ||
Multi-select Tile | ||
<SelectableTileGroup legend="Select the options you require" light> | ||
<SelectableTile title="Option 1" selected> | ||
Option 1 | ||
</SelectableTile> | ||
<SelectableTile selected> | ||
Multi-select Tile | ||
<SelectableTile title="Option 2" selected> | ||
Option 2 | ||
</SelectableTile> | ||
<SelectableTile> | ||
Multi-select Tile | ||
<SelectableTile title="Option 3£> | ||
Option 3 | ||
</SelectableTile> | ||
<SelectableTile light title="Option 4£> | ||
Option 4 (light variant) | ||
</SelectableTile> | ||
</div> | ||
|
||
### Light variant | ||
### Multi-selectable tiles with light variant | ||
|
||
<div role="group" aria-label="selectable tiles"> | ||
<SelectableTile light selected> | ||
Multi-select Tile | ||
<SelectableTileGroup light legend="Select the options you require" light> | ||
<SelectableTile title="Option 1" selected> | ||
Option 1 | ||
</SelectableTile> | ||
<SelectableTile title="Option 2" selected> | ||
Option 2 | ||
</SelectableTile> | ||
<SelectableTile light selected> | ||
Multi-select Tile | ||
<SelectableTile title="Option 3£> | ||
Option 3 | ||
</SelectableTile> | ||
<SelectableTile light> | ||
Multi-select Tile | ||
<SelectableTile title="Option 4£> | ||
Option 4 | ||
</SelectableTile> | ||
</div> | ||
</div> |
Oops, something went wrong.