廓形仪rn版本-技术调研
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
572 B

  1. import React from 'react';
  2. import type { VariantProps } from '@gluestack-ui/nativewind-utils';
  3. import { vstackStyle } from './styles';
  4. type IVStackProps = React.ComponentProps<'div'> &
  5. VariantProps<typeof vstackStyle>;
  6. const VStack = React.forwardRef<React.ComponentRef<'div'>, IVStackProps>(
  7. function VStack({ className, space, reversed, ...props }, ref) {
  8. return (
  9. <div
  10. className={vstackStyle({ space, reversed, class: className })}
  11. {...props}
  12. ref={ref}
  13. />
  14. );
  15. }
  16. );
  17. VStack.displayName = 'VStack';
  18. export { VStack };