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