open-sidebar-button.tsx

src/components/sidebar-stack/open-sidebar-button.tsx
'use client'
import type { ReactNode } from 'react'
import { Button } from '@/components/button'
import { useSidebarStack } from './context'
export interface OpenSidebarButtonProps {
children: ReactNode
componentId: string
title: string
className?: string
icon?: { body: string; width?: number; height?: number }
iconPlacement?: 'before' | 'after'
/** Show title immediately instead of fading in on scroll */
showTitleImmediately?: boolean
}
/**
* A button that opens a sidebar panel when clicked.
* Client component that uses the sidebar stack context.

Showing the first 20 lines.

Get full code

Support

Talk to the developers of this project to learn more

We have been building professional websites for big clients for over 15 years. Gallop templates and blocks is our best foundation for SEO websites and web apps.

© 2026 Web Plant Media, LLC