mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
feat(UIShell): export ref for all UIShell components
This commit is contained in:
parent
4204a10a3e
commit
d1e9fc7225
11 changed files with 82 additions and 5 deletions
|
@ -11,6 +11,12 @@
|
|||
*/
|
||||
export let isOpen = false;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML button element
|
||||
* @type {null | HTMLButtonElement} [ref=null]
|
||||
*/
|
||||
export let ref = null;
|
||||
|
||||
import { fly } from "svelte/transition";
|
||||
import Close20 from "carbon-icons-svelte/lib/Close20";
|
||||
import Menu20 from "carbon-icons-svelte/lib/Menu20";
|
||||
|
@ -19,6 +25,7 @@
|
|||
|
||||
<button
|
||||
type="button"
|
||||
bind:this="{ref}"
|
||||
title="Open menu"
|
||||
aria-label="{ariaLabel}"
|
||||
class:bx--header__action="{true}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue