--- title: Center description: "`Center` is a component that aligns the child elements in the center within the component." links: - style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/center/center.style.ts - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/center - storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-center--basic --- ```tsx
This is the Center
``` ## Usage ```tsx import { Center } from "@yamada-ui/react" ``` ```tsx import { Center } from "@/components/ui" ``` ```tsx import { Center } from "@workspaces/ui" ``` ```tsx
``` ## Props | Prop | Default | Type | Description | | ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | | `as` | - | `As` | The HTML element to render. | | `asChild` | - | `boolean` | Merges its props onto its immediate child. | | `css` | - | `CSSObject \| CSSObject[]` | The CSS object. | | `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |