668f8ec4a6
* Standardize mobile media query * Refactor & add mobile support to dialogs * back & close icons
18 lines
380 B
TypeScript
18 lines
380 B
TypeScript
import "./Island.css";
|
|
|
|
import React from "react";
|
|
|
|
type IslandProps = { children: React.ReactNode; padding?: number };
|
|
|
|
export const Island = React.forwardRef<HTMLDivElement, IslandProps>(
|
|
({ children, padding }, ref) => (
|
|
<div
|
|
className="Island"
|
|
style={{ "--padding": padding } as React.CSSProperties}
|
|
ref={ref}
|
|
>
|
|
{children}
|
|
</div>
|
|
),
|
|
);
|