Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Form id="hubspotForm" availables={["Spain", "Andorra", "Belgium"]}></Form>
- const Form = styled.div<{ availables: string[] }>`
- option {
- display: none;
- }
- ${({ availables }) =>
- availables.map(
- element => css`
- option[value="${element}"] {
- display: initial;
- }
- `
- )};
- `;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement