mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
add id to RadioButtonGroup container div
This commit is contained in:
parent
6eeeebec6a
commit
e378832de4
1 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,12 @@
|
||||||
*/
|
*/
|
||||||
export let orientation = "horizontal";
|
export let orientation = "horizontal";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set an id for the container div element
|
||||||
|
* @type {string} [id]
|
||||||
|
*/
|
||||||
|
export let id = "ccs-" + Math.random().toString(36);
|
||||||
|
|
||||||
import { createEventDispatcher, setContext } from "svelte";
|
import { createEventDispatcher, setContext } from "svelte";
|
||||||
import { writable } from "svelte/store";
|
import { writable } from "svelte/store";
|
||||||
|
|
||||||
|
@ -46,6 +52,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
{id}
|
||||||
class:bx--form-item="{true}"
|
class:bx--form-item="{true}"
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
on:click
|
on:click
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue