Settings

Theme

Unicorn or Chameleon? Two strategies for exporting customizable React components

clerk.dev

2 points by bsid 4 years ago · 1 comment

Reader

colinclerk 4 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!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection