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

20 lines
520 B

  1. import { tva } from '@gluestack-ui/nativewind-utils/tva';
  2. import { isWeb } from '@gluestack-ui/nativewind-utils/IsWeb';
  3. const baseStyle = isWeb ? 'flex flex-col relative z-0' : '';
  4. export const cardStyle = tva({
  5. base: baseStyle,
  6. variants: {
  7. size: {
  8. sm: 'p-3 rounded',
  9. md: 'p-4 rounded-md',
  10. lg: 'p-6 rounded-xl',
  11. },
  12. variant: {
  13. elevated: 'bg-background-0',
  14. outline: 'border border-outline-200 ',
  15. ghost: 'rounded-none',
  16. filled: 'bg-background-50',
  17. },
  18. },
  19. });