fix(code-snippet-skeleton): CodeSnippetSkeleton can only be single or multi

This commit is contained in:
Eric Liu 2020-12-05 15:13:00 -08:00
commit 41cb74646b
4 changed files with 7 additions and 7 deletions

View file

@ -1,14 +1,14 @@
<script>
/**
* Set the type of code snippet
* @type {"single" | "inline" | "multi"}
* @type {"single" | "multi"}
*/
export let type = "single";
</script>
<div
class:bx--snippet="{true}"
class:bx--skeleton="{true}"
class:bx--snippet="{true}"
class:bx--snippet--single="{type === 'single'}"
class:bx--snippet--multi="{type === 'multi'}"
{...$$restProps}