Component API

<slide-panel>

Open live example

Generic sliding panel shell. Handles positioning, open/close animation,
header chrome, and a close button. Body content is provided via the
default slot; the consumer controls its own padding and overflow.

Desktop: fixed right-side panel that slides from the right.
Mobile (≤48rem): bottom-sheet drawer (60vh) — reserved for future use.

Install

import "@f-ewald/components/slide-panel.js";

Usage

<slide-panel open heading="Property details">
  Panel body content goes here.
</slide-panel>

Attributes / properties

PropertyAttributeTypeDefaultDescription
openopenbooleanfalseWhether the panel is currently visible.
headingheadingstring""Title text shown in the panel header (overridable via slot="title").

Events

EventDescription
panel-closeUser clicked the close (✕) button.

Slots

SlotDescription
(default)Panel body content.
titleOverrides the header title text (falls back to the heading property).

CSS custom properties

Custom property
--ui-border
--ui-focus-ring
--ui-font
--ui-font-size-lg
--ui-font-weight-semibold
--ui-line-height-tight
--ui-radius
--ui-radius-sm
--ui-shadow-lg
--ui-surface
--ui-surface-muted
--ui-text
--ui-text-muted