Style Hooks

kind prop (variants)

Kinds (or variants as they are known in some lesser systems that don't value short property names) are another powerful pattern built in to Style Hooks

The kind prop allows you to specify groups of default properties in your theme for each hook you create. This is a wonderful feature because it means you'll be repeating props less often, creating fewer components, and ensuring any memoization employed by you or Emotion is reliable.

Continue to css prop
NPM icon
MIT License ©2019
Jared Lunde