top | item 31045289

Unicorn or Chameleon? Two strategies for exporting customizable React components

2 points| bsid | 3 years ago |clerk.dev

1 comment

order

colinclerk|3 years ago

Hey HN - we’d really appreciate any feedback on this one as it’s still in R&D.

One of the bigger questions is with the class name approach. As written in the document, we replace the default class name when the developer provides a string.

Another strategy is to append the developers string to our own. This might be better if our styles are already close and you just want to make a tweak, but it could also be annoying to tear down our styles if you don’t want them (e.g. removing our box-shadow)

We’d also appreciate any examples of embeddable components that you particularly enjoyed working with.

Thanks!