Hook or Types for React Headless Components Installation npm install react-headless-hook # yarn add react-headless-hook Motivation Polymorphic Components (e.g. with as props) react-polymorphic-box issues displayName and propTypes are not allowed on forwardRef component react-polymorphic-types react polymorphic forward ref Wanda Polymorphic + code Radix Polymorphic asChild Slot + code org:radix-ui asChild [All] Replace polymorphism with asChild prop Typing of props for children with Slots (asChild) Prop types for children of slottable (asChild) components Dedicated asChild page Stitches. Composing Components "Too complex" union type is created when composing and using as prop Is stitches still under maintenance?? compose component not support "as" prop When using the "css" prop, locally should scoped tokens ignore 'undefined' values? [FR] Static Extraction vanilla-extract