Components
API Reference

API Reference

Centralizes its content

<Center>
  <Text>In the absolute center</Text>
</Center>

Parameters

props

  • Type: @vtex/shoreline-components.CenterProps & @types/react.React.RefAttributes<typescript.HTMLDivElement>

Props

asChild (optional)

Children composition

  • Type: boolean

  • Default: false

View source (opens in a new tab)