Skip to content

How to programmatically open and close Sheet? #727

Answered by robots4life
akubima asked this question in Help
Discussion options

You must be logged in to vote
let open = false;

<Sheet.Root bind:open>

<Sheet.Content side="left">

<a
	onclick={() => {
		open = false;
	}}
	href="/about"
	class="text-muted-foreground hover:text-foreground {$pageStore.route.id === '/about'
		? 'font-bold text-sky-950'
		: ''}">About</a
>

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@dhndmn
Comment options

@mstibbard
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by huntabyte
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants