import type { NextPage } from 'next' import { useEffect, useRef, useState } from 'react' import Button from '../../docs/fixtures/Button' import Code from '../../docs/fixtures/Code' import Container from '../../docs/fixtures/Container' import SheetContent from '../../docs/fixtures/SheetContent' import { aside } from '../../docs/headings' import MetaTags from '../../docs/MetaTags' import { BottomSheet } from '../../src' import type { GetStaticProps } from '../_app' export { getStaticProps } from '../_app' const AsideFixturePage: NextPage = ({ description, homepage, meta, name, }) => { const [open, setOpen] = useState(true) const focusRef = useRef() useEffect(() => { // Setting focus is to aid keyboard and screen reader nav when activating this iframe focusRef.current.focus() }, []) return ( <> setOpen(false)} blocking={false} header={ } snapPoints={({ maxHeight }) => [maxHeight / 4, maxHeight * 0.6]} >

When blocking is false it's possible to use the Bottom Sheet as an height adjustable sidebar/panel.

You can combine this with onDismissable to fine-tune the behavior you want.

) } export default AsideFixturePage