andreypopp/react-css-components

Non-div elements

jacobp100 opened this issue · 2 comments

Important as divs are not permissible in some elements (i.e. buttons)

Supported through the base property:

Button {
  base: button;
  color: red;
}

In fact if you have a composite component which accepts className you can even use it as a base:

FancyButton {
  base: ./buttons/ButtonBase;
  color: red;
}

Leaving this issue open not to forget to document this.

Documented!