🏭 Rebass Extend
Rebass is an unopinionated and extensible set of React primitives.
This library allows you to easily add your own style functions to the Rebass UI primitives.
yarn add rebass rebass-extend
Getting Started
// src/lib/primitives.js ;; const Box Flex Text Heading Button Link Image Card = ;
The display
style function is added to Box
, and all the components that extend
it, like Card
!
// src/components/Badge.jsimport Card from "src/lib/primitives"; const Badge = <Card ="white" ="blue" = = = ="inline-block" />; ;