Force mobile
import { Tldraw } from 'tldraw'
import 'tldraw/tldraw.css'
export default function ForceMobileExample() {
return (
<div className="tldraw__editor">
<Tldraw persistenceKey="example" forceMobile />
</div>
)
}
/*
This example shows how you can force the editor to use the mobile breakpoint.
Simply pass the `forceMobile` prop to the editor component.
*/
Is this page helpful?
Prev
Deep LinksNext
Custom options