@qwqui/center
v1.0.1-alpha.0
Published
The `Center` component provides a flexible way to center its children either in a block or inline context.
Downloads
15
Readme
@qwqui/center
The Center component provides a flexible way to center its children either in a block or inline context.
Install
pnpm add @qwqui/centerUsage
import React from 'react';
import { Center } from '@qwqui/center';
const Example = () => (
<Center inline>
<span>Your content here</span>
</Center>
);Props
| Name | Type | Description |
|---|---|---|
| children | React.ReactNode | The content to be centered. |
| inline | boolen | If true, applies inline-flex display type; otherwise, applies flex. Defaults to false. |
License
- MIT
