mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
Remove id
and amend as
to string
This commit is contained in:
parent
f349b505f9
commit
e07611184e
1 changed files with 1 additions and 8 deletions
|
@ -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}
|
||||
>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue