Remove id and amend as to string

This commit is contained in:
Samuel Janda 2024-03-10 08:29:14 +11:00
commit e07611184e

View file

@ -7,10 +7,7 @@
*/
export let level = undefined;
/**
* Specify the HTML element to render. If none is specified, a `div` is rendered.
* @type {typeof import("svelte").SvelteComponent}
*/
/** Specify the HTML element to render. If none is specified, a `div` is rendered. */
export let as = "div";
/**
@ -19,9 +16,6 @@
*/
export let layerProps = {};
/** Set an id for the Layer component */
export let id = "ccs-" + Math.random().toString(36);
let ref = null;
// If there is no level override, determine the Level based on the hierarchy
@ -37,7 +31,6 @@
class:bx--layer-one="{level === 0}"
class:bx--layer-two="{level === 1}"
class:bx--layer-three="{level === 2}"
id="{id}"
bind:this="{ref}"
{...layerProps}
>