Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does this work with arbitrary depth? Can I do

  `````ts
  const Accordian = styled.details<{ isAprilFirst: boolean; }>`
  ````css
    accent: rebeccapurple;
    font-family: ${
  ```js
      props => props.isAprilFirst ? 'Comic Sans' : 'Time New Roman'
  ```
    };
  ````
  `;

  `````




Sure, as long as you don't run out of `s



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: