Skip to main content

Interface: WorkspaceLayoutContainerProps

Defined in: src/workspace/workspaceLayout.tsx:72

Props for WorkspaceLayoutRow and WorkspaceLayoutColumn components.

See

Extends

  • CommonWorkspaceLayoutProps

Properties

PropertyTypeDescriptionInherited from

animationDuration?

number

Expand/collapse animation duration for the child layout items.

Default is set by --reactodia-accordion-transition-duration CSS property.

children

WorkspaceChild | readonly WorkspaceChild[]

Child layout components.

className?

string

Additional CSS class for the component.

CommonWorkspaceLayoutProps.className

collapsedSize?

number

Size to use when the layout component is collapsed.

The size is width if the component is inside layout row and height if it is inside column.

Default is 28 for a layout row, otherwise it is computed automatically.

CommonWorkspaceLayoutProps.collapsedSize

defaultCollapsed?

boolean

Whether the layout component is collapsed by default.

Default

false

CommonWorkspaceLayoutProps.defaultCollapsed

defaultSize?

number

Default size for the layout component.

The size is width if the component is inside layout row and height if it is inside column.

Default is computed automatically by dividing the space evenly between child components.

CommonWorkspaceLayoutProps.defaultSize

id?

string

Unique layout container ID withing the layout component tree.

minSize?

number

Minimum size for the layout component.

If the layout component is resized below this size it would be considered collapsed.

The size is width if the component is inside layout row and height if it is inside column.

CommonWorkspaceLayoutProps.minSize

style?

CSSProperties

Additional CSS styles for the component.

CommonWorkspaceLayoutProps.style

undocked?

boolean

Disables the docking for the layout component.

A layout component with docking displays controls to expand/collapse it if the component is the first or the last one within a column.

Default

false

CommonWorkspaceLayoutProps.undocked