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

35 lines
673 B

  1. import { tva } from '@gluestack-ui/nativewind-utils/tva';
  2. export const skeletonStyle = tva({
  3. base: 'w-full h-full',
  4. variants: {
  5. variant: {
  6. sharp: 'rounded-none',
  7. circular: 'rounded-full',
  8. rounded: 'rounded-md',
  9. },
  10. speed: {
  11. 1: 'duration-75',
  12. 2: 'duration-100',
  13. 3: 'duration-150',
  14. 4: 'duration-200',
  15. },
  16. },
  17. });
  18. export const skeletonTextStyle = tva({
  19. base: 'rounded-sm w-full',
  20. variants: {
  21. speed: {
  22. 1: 'duration-75',
  23. 2: 'duration-100',
  24. 3: 'duration-150',
  25. 4: 'duration-200',
  26. },
  27. gap: {
  28. 1: 'gap-1',
  29. 2: 'gap-2',
  30. 3: 'gap-3',
  31. 4: 'gap-4',
  32. },
  33. },
  34. });