add id to RadioButtonGroup container div

This commit is contained in:
weaseldotro 2020-10-05 13:04:58 +03:00 committed by GitHub
commit e378832de4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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