Pane

Content section within a panel for composing property editors.

Install

npx shadcn@latest add https://substrate.georgedrury.co.uk/r/pane

Examples

Default

Properties
Width400px
Height300px
Rotation0°
import {
	Pane,
	PaneHeader,

With history controls

Drop HistoryControls (or individual HistoryButton elements) into a PaneHeader and they auto-push to the right and compact to match the header height.

Position
X
Y
"use client"

import { useState, useCallback } from "react"

Theme variables

Pane inherits panel tokens. PaneAction uses bg-panel for its background.

VariableTailwind classFallbackDescription
--panelbg-panel--cardAction button background

Components

ComponentDescription
PaneContainer with vertical spacing and horizontal padding
PaneHeaderFlex row for label + action
PaneLabelSection title text
PaneActionButton slot in the header