Guest User

Untitled

a guest
Jul 19th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. // parent
  2.  
  3. <BottomSheet
  4. primaryBtn={
  5. <Button
  6. children="Primary Action"
  7. licon="lock-f"
  8. onClick={action("primaryBtn Action")}
  9. />
  10. }
  11. info="Lorem ipsum dolor sit, amet consectetur adipisicing elit.<br/> Accusamus asperiores fuga "
  12. />
  13.  
  14. // child
  15.  
  16. <secondaryBtn.type
  17. {...{
  18. marker: "primary",
  19. size: "small",
  20. full: true,
  21. outline: true,
  22. style: { marginRight: "16px", flexBasis: "40%" }
  23. }}
  24. {...secondaryBtn.props}
  25. />
  26.  
  27. {React.cloneElement(primaryBtn, {
  28. marker: "primary",
  29. size: "small",
  30. full: true,
  31. style: { flexBasis: "60%" }
  32. })}
  33.  
  34. {/* <primaryBtn.type
  35. {...{
  36. marker: "primary",
  37. size: "small",
  38. full: true,
  39. style: { flexBasis: "60%" }
  40. }}
  41. {...primaryBtn.props}
  42. /> */}
  43. {React.cloneElement(primaryBtn, {
  44. marker: "primary",
  45. size: "small",
  46. full: true,
  47. style: { flexBasis: "60%" }
  48. })}
Add Comment
Please, Sign In to add comment