mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 02:41:05 +00:00
parent
0ea318046a
commit
180f33b907
9 changed files with 164 additions and 2 deletions
27
types/Layer/Layer.svelte.d.ts
vendored
Normal file
27
types/Layer/Layer.svelte.d.ts
vendored
Normal 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: {} }
|
||||
> {}
|
Loading…
Add table
Add a link
Reference in a new issue