Skip to main content

IsometricPlane

IsometricPlane renders a flat isometric surface. It is useful for floors, platforms, and layered scenes.

Import

import { IsometricPlane } from "isometric-react/isometric-plane";

Props

PropTypeRequiredDescription
size{ width: number; height: number }YesPlane dimensions.
colorstringNoPlane color override.
asReact.ElementTypeNoPolymorphic element type.
positionPositionNoOffsets and elevation values.
borderBorderNoBorder styling around the plane.
edgeEdgeNoEdge depth and edge color settings.
shadowShadowNoShadow distance and spacing settings.
shadowAnimationShadowAnimationNoAnimated shadow configuration.
rotationRotationNoRotation animation configuration.

Basic usage

import { IsometricPlane } from "isometric-react/isometric-plane";

export function BasicPlane() {
return <IsometricPlane size={{ width: 8, height: 8 }} />;
}

Rendered example

With optional props

import { IsometricPlane } from "isometric-react/isometric-plane";

export function StyledPlane() {
return (
<IsometricPlane
size={{ width: 8, height: 8 }}
color="#4f8bff"
as="section"
position={{ top: 1, left: 2, elevation: 1 }}
border={{ size: 1, style: "solid", color: "#1f2a44" }}
edge={{ depth: 2, color: "#2c4ea3" }}
shadow={{ distance: 2, spacingX: 1, spacingY: 1 }}
/>
);
}

Supported shared props