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.
23 lines
567 B
23 lines
567 B
import React from 'react';
|
|
import type { VariantProps } from '@gluestack-ui/nativewind-utils';
|
|
import { hstackStyle } from './styles';
|
|
|
|
type IHStackProps = React.ComponentPropsWithoutRef<'div'> &
|
|
VariantProps<typeof hstackStyle>;
|
|
|
|
const HStack = React.forwardRef<React.ElementRef<'div'>, IHStackProps>(
|
|
({ className, space, reversed, ...props }, ref) => {
|
|
return (
|
|
<div
|
|
className={hstackStyle({ space, reversed, class: className })}
|
|
{...props}
|
|
ref={ref}
|
|
/>
|
|
);
|
|
}
|
|
);
|
|
|
|
HStack.displayName = 'HStack';
|
|
|
|
export { HStack };
|