You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
507 B
21 lines
507 B
2 days ago
|
import React from 'react';
|
||
|
import { centerStyle } from './styles';
|
||
|
|
||
|
import type { VariantProps } from '@gluestack-ui/utils/nativewind-utils';
|
||
|
|
||
|
type ICenterProps = React.ComponentPropsWithoutRef<'div'> &
|
||
|
VariantProps<typeof centerStyle>;
|
||
|
|
||
|
const Center = React.forwardRef<HTMLDivElement, ICenterProps>(function Center(
|
||
|
{ className, ...props },
|
||
|
ref
|
||
|
) {
|
||
|
return (
|
||
|
<div className={centerStyle({ class: className })} {...props} ref={ref} />
|
||
|
);
|
||
|
});
|
||
|
|
||
|
Center.displayName = 'Center';
|
||
|
|
||
|
export { Center };
|