mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +00:00
chore: add more prop annotations
This commit is contained in:
parent
8c1ffd4cb0
commit
773b18d314
75 changed files with 877 additions and 137 deletions
|
@ -1,5 +1,10 @@
|
|||
<script>
|
||||
/**
|
||||
* Set an id for the top-level element
|
||||
* @type {string} [id]
|
||||
*/
|
||||
export let id = "ccs-" + Math.random().toString(36);
|
||||
|
||||
import { getContext } from "svelte";
|
||||
|
||||
const { selectedContent, addContent } = getContext("Tabs");
|
||||
|
@ -12,6 +17,8 @@
|
|||
<div
|
||||
aria-hidden={!selected}
|
||||
hidden={!selected}
|
||||
{id}
|
||||
{...$$restProps}
|
||||
class:bx--tab-content={true}
|
||||
class={$$restProps.class}
|
||||
style={$$restProps.style}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue