let
| Yes | 0 | 1 | 2
| undefined
| Specify the layer level to override any existing levels based on hierarchy. |
+| as | No | let
| No | string
| "div"
| Specify the HTML element to render. |
+| layerProps | No | let
| No | import('svelte/elements').HTMLElementAttributes
| {}
| Specify the Layer HTML element props |
+
+### Slots
+
+| Slot name | Default | Props | Fallback |
+| :-------- | :------ | :---- | :------- |
+| -- | Yes | -- | -- |
+
+### Events
+
+None.
+
## `Link`
### Props
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index 57843782..60018cc2 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -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",
diff --git a/docs/src/pages/components/Layer.svx b/docs/src/pages/components/Layer.svx
new file mode 100644
index 00000000..f4cd6493
--- /dev/null
+++ b/docs/src/pages/components/Layer.svx
@@ -0,0 +1,16 @@
+
+
+## Default
+
+First layer
+Second layer
+Third layer
+First layer
+Second layer
+Third layer
+