Advertisement
Guest User

Untitled

a guest
May 26th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. --- a/product-card.framerfx/code/Card.tsx
  2. +++ b/product-card.framerfx/code/Card.tsx
  3. @@ -2,7 +2,7 @@ import * as React from 'react'
  4. import { Frame, useCycle, Stack } from 'framer'
  5. import { url } from 'framer/resource'
  6.  
  7. -export function Card() {
  8. +export function Card(props) {
  9. return (
  10. <Stack
  11. gap={0}
  12. @@ -29,7 +29,7 @@ export function Card() {
  13. fontWeight: '900',
  14. }}
  15. >
  16. - BBottle
  17. + {props.name}
  18. </span>
  19. <span
  20. style={{
  21. @@ -41,9 +41,14 @@ export function Card() {
  22. left: '0px',
  23. }}
  24. >
  25. - $99.99
  26. + {props.price}
  27. </span>
  28. </Frame>
  29. </Stack>
  30. )
  31. }
  32. +
  33. +Card.defaultProps = {
  34. + name: 'My Card',
  35. + price: '$89.99',
  36. +}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement