Centered, padded column. maxWidth takes a Tailwind class.

Content stays centered and never wider than max-w-sm.

Props

  • maxWidthstring
    Default: 'max-w-5xl'

    Tailwind max-width class.

  • classNamestring
    Default: ''

    Extra classes for the root element.

  • asElementType
    Default: 'div'

    Element or component to render.

  • childrenReactNode

    Content.

  • ...rest

    Any other props are passed to the underlying element.