BetaBeta pública — Consulta las notas de lanzamiento
Documentación

Resizable Panels

Drag-to-resize panel layout.

Paquete
@solidiom/resizable-panels
Versión
0.0.1-next.0
Estado
stable

Generado a partir del código fuente público del paquete.

API

Handlecomponente

@solidiom/resizable-panels — Headless resizable panel layout primitive. Parts: PanelGroup, Panel, Handle.

                        Handle(props: HandleProps): Element
                      

Propiedades

class?
string
disabled?
boolean — Whether this handle is disabled.
index
number — The index of the handle (separates panel[index] and panel[index+1]).
ref?
(el: HTMLDivElement) => void

hijos: Element

Ver código fuente

HandlePropsinterfaz

Props for a resize handle between panels.

Propiedades

class?
string
disabled?
boolean — Whether this handle is disabled.
index
number — The index of the handle (separates panel[index] and panel[index+1]).
ref?
(el: HTMLDivElement) => void

hijos: Element

Ver código fuente

Panelcomponente

@solidiom/resizable-panels — Headless resizable panel layout primitive. Parts: PanelGroup, Panel, Handle.

                        Panel(props: PanelProps): Element
                      

Propiedades

class?
string
collapsible?
boolean — Whether the panel can collapse to 0 below minSize.
defaultSize?
number
maxSize?
number
minSize?
number — Size constraints for this panel.
order
number — Unique order index for this panel within the group.
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties

hijos: Element

Ver código fuente

PanelConstraintsinterfaz

Size constraint for a single panel.

Propiedades

collapsible?
boolean — Whether this panel can collapse to 0 when dragged below minSize.
defaultSize?
number — Default size as a percentage.
maxSize?
number — Maximum size as a percentage (0–100). Default: 100.
minSize?
number — Minimum size as a percentage (0–100). Default: 0.

Ver código fuente

PanelEntryinterfaz

Registration entry for a panel in the group.

Propiedades

constraints
PanelConstraints
id
string
order
number

Ver código fuente

PanelGroupcomponente

@solidiom/resizable-panels — Headless resizable panel layout primitive. Parts: PanelGroup, Panel, Handle.

                        PanelGroup(props: PanelGroupProps): Element
                      

Propiedades

class?
string
defaultSizes?
number[] — Default sizes for uncontrolled mode.
direction?
"horizontal" | "vertical" — Layout direction. Default: "horizontal".
onSizesChange?
(sizes: number[], details: ChangeDetails<PanelResizeReason>) => void — Called when panel sizes change.
sizes?
Accessor<number[]> — Controlled panel sizes as percentages.

hijos: Element

Ver código fuente

PanelGroupContextValueinterfaz

Propiedades

baseId
string — Generated base ID.
direction
Accessor<"horizontal" | "vertical"> — Layout direction.
panels
Accessor<PanelEntry[]> — Ordered panel entries.
registerPanel
(entry: PanelEntry) => () => void — Register a panel and return a cleanup function.
requestSizeChange
(sizes: number[], details: ChangeDetails<PanelResizeReason>) => void — Request a size change for the group layout.
sizes
Accessor<number[]> — Current panel sizes as percentages, indexed by panel order.

Ver código fuente

PanelGroupPropsinterfaz

Props for the resizable panel group container.

Propiedades

class?
string
defaultSizes?
number[] — Default sizes for uncontrolled mode.
direction?
"horizontal" | "vertical" — Layout direction. Default: "horizontal".
onSizesChange?
(sizes: number[], details: ChangeDetails<PanelResizeReason>) => void — Called when panel sizes change.
sizes?
Accessor<number[]> — Controlled panel sizes as percentages.

hijos: Element

Ver código fuente

PanelPropsinterfaz

Props for an individual resizable panel.

Propiedades

class?
string
collapsible?
boolean — Whether the panel can collapse to 0 below minSize.
defaultSize?
number
maxSize?
number
minSize?
number — Size constraints for this panel.
order
number — Unique order index for this panel within the group.
ref?
(el: HTMLDivElement) => void
style?
string | CSSProperties

hijos: Element

Ver código fuente

PanelResizeReasontipo

Reason for a panel size change.

Ver código fuente