feat(layer): first pass at Layer component (#1932)

Closes #1892
This commit is contained in:
Sam 2024-03-24 09:30:32 +11:00 committed by GitHub
commit 180f33b907
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 164 additions and 2 deletions

27
types/Layer/Layer.svelte.d.ts vendored Normal file
View file

@ -0,0 +1,27 @@
import type { SvelteComponentTyped } from "svelte";
export interface LayerProps {
/**
* Specify the layer level to override any existing levels based on hierarchy.
* @default undefined
*/
level?: 0 | 1 | 2;
/**
* Specify the HTML element to render.
* @default "div"
*/
as?: string;
/**
* Specify the Layer HTML element props
* @default {}
*/
layerProps?: import("svelte/elements").HTMLElementAttributes;
}
export default class Layer extends SvelteComponentTyped<
LayerProps,
Record<string, any>,
{ default: {} }
> {}