廓形仪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.

25 lines
626 B

  1. import { isWeb } from '@gluestack-ui/nativewind-utils/IsWeb';
  2. import { tva } from '@gluestack-ui/nativewind-utils/tva';
  3. const baseStyle = isWeb
  4. ? 'flex flex-col relative z-0 box-border border-0 list-none min-w-0 min-h-0 bg-transparent items-stretch m-0 p-0 text-decoration-none'
  5. : '';
  6. export const vstackStyle = tva({
  7. base: `flex-col ${baseStyle}`,
  8. variants: {
  9. space: {
  10. 'xs': 'gap-1',
  11. 'sm': 'gap-2',
  12. 'md': 'gap-3',
  13. 'lg': 'gap-4',
  14. 'xl': 'gap-5',
  15. '2xl': 'gap-6',
  16. '3xl': 'gap-7',
  17. '4xl': 'gap-8',
  18. },
  19. reversed: {
  20. true: 'flex-col-reverse',
  21. },
  22. },
  23. });