mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-08-23 18:26:54 +02:00
Add Zen mode for distraction free drawing (#1450)
This commit is contained in:
@@ -5,14 +5,18 @@ import React from "react";
|
||||
type FixedSideContainerProps = {
|
||||
children: React.ReactNode;
|
||||
side: "top" | "left" | "right";
|
||||
className?: string;
|
||||
};
|
||||
|
||||
export function FixedSideContainer({
|
||||
children,
|
||||
side,
|
||||
className,
|
||||
}: FixedSideContainerProps) {
|
||||
return (
|
||||
<div className={`FixedSideContainer FixedSideContainer_side_${side}`}>
|
||||
<div
|
||||
className={`FixedSideContainer FixedSideContainer_side_${side} ${className}`}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
Reference in New Issue
Block a user