import React from 'react'; import { Button as ButtonPrimitive, ButtonProps as ButtonPropsPrimitive } from '@modulz/primitives'; export type ButtonProps = ButtonPropsPrimitive & { variant?: 'blue' | 'green' | 'red' | 'yellow'; } type ExtractRefType = TypesThatMayContainReactRef extends {ref?: React.Ref} ? T : unknown; type PrimitiveRefType = ExtractRefType export const Button = React.forwardRef((props, ref) => { return ( ); });