mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
parent
e4670a1a51
commit
5031d0b40e
9 changed files with 164 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"total": 165,
|
||||
"total": 166,
|
||||
"components": [
|
||||
{
|
||||
"moduleName": "Accordion",
|
||||
|
@ -5754,6 +5754,51 @@
|
|||
"typedefs": [],
|
||||
"rest_props": { "type": "Element", "name": "div" }
|
||||
},
|
||||
{
|
||||
"moduleName": "Layer",
|
||||
"filePath": "src/Layer/Layer.svelte",
|
||||
"props": [
|
||||
{
|
||||
"name": "level",
|
||||
"kind": "let",
|
||||
"description": "Specify the layer level to override any existing levels based on hierarchy.",
|
||||
"type": "0 | 1 | 2 ",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
"isRequired": false,
|
||||
"constant": false,
|
||||
"reactive": true
|
||||
},
|
||||
{
|
||||
"name": "as",
|
||||
"kind": "let",
|
||||
"description": "Specify the HTML element to render.",
|
||||
"type": "string",
|
||||
"value": "\"div\"",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
"isRequired": false,
|
||||
"constant": false,
|
||||
"reactive": false
|
||||
},
|
||||
{
|
||||
"name": "layerProps",
|
||||
"kind": "let",
|
||||
"description": "Specify the Layer HTML element props",
|
||||
"type": "import('svelte/elements').HTMLElementAttributes",
|
||||
"value": "{}",
|
||||
"isFunction": false,
|
||||
"isFunctionDeclaration": false,
|
||||
"isRequired": false,
|
||||
"constant": false,
|
||||
"reactive": false
|
||||
}
|
||||
],
|
||||
"moduleExports": [],
|
||||
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
|
||||
"events": [],
|
||||
"typedefs": []
|
||||
},
|
||||
{
|
||||
"moduleName": "Link",
|
||||
"filePath": "src/Link/Link.svelte",
|
||||
|
|
16
docs/src/pages/components/Layer.svx
Normal file
16
docs/src/pages/components/Layer.svx
Normal file
|
@ -0,0 +1,16 @@
|
|||
<script>
|
||||
import { Layer } from "carbon-components-svelte";
|
||||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
## Default
|
||||
|
||||
<Layer>
|
||||
<p>First layer</p>
|
||||
<Layer>
|
||||
<p>Second layer</p>
|
||||
<Layer>
|
||||
<p>Third layer</p>
|
||||
</Layer>
|
||||
</Layer>
|
||||
</Layer>
|
Loading…
Add table
Add a link
Reference in a new issue