New to KendoReactLearn about KendoReact Free.

StackLayoutProps

Represents the props of the KendoReact StackLayout component.

NameTypeDefaultDescription

align?

StackLayoutAlign

Specifies the horizontal and vertical alignment of the inner StackLayout elements. Demo (here) and (here).

The possible keys are:

  • horizontal—Defines the possible horizontal alignment of the inner StackLayout elements.
    • start—Uses the start point of the container.
    • center—Uses the central point of the container.
    • end—Uses the end point of the container.
    • (Default)stretch—Stretches the items to fill the width of the container.
  • vertical—Defines the possible vertical alignment of the inner StackLayout elements.
    • top—Uses the top point of the container.
    • middle—Uses the middle point of the container.
    • bottom—Uses the bottom point of the container.
    • (Default)stretch—Stretches the items to fill the height of the container.

children?

React.ReactNode

The React elements that will be rendered inside the StackLayout.

className?

string

Sets additional CSS classes to the StackLayout.

gap?

string | number

Specifies the gap between the inner elements (see example).

id?

string

Sets the id property of the root StackLayout element.

orientation?

StackLayoutOrientation

Specifies the orientation of the StackLayout. (see example).

The possible values are:

  • (Default)horizontal
  • vertical

style?

React.CSSProperties

Sets additional CSS styles to the StackLayout.

Not finding the help you need?
Contact Support