Advertisement
SpykeRel04D

Untitled

Apr 27th, 2021
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <Form id="hubspotForm" availables={["Spain", "Andorra", "Belgium"]}></Form>
  2.  
  3. const Form = styled.div<{ availables: string[] }>`
  4. option {
  5. display: none;
  6. }
  7.  
  8. ${({ availables }) =>
  9. availables.map(
  10. element => css`
  11. option[value="${element}"] {
  12. display: initial;
  13. }
  14. `
  15. )};
  16. `;
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement