react-input-pin-code icon indicating copy to clipboard operation
react-input-pin-code copied to clipboard

Support for MUI Text Field

Open prince272 opened this issue 1 year ago • 2 comments

// Consider using a dyamic component: Example
export const DynamicComponent = forwardRef(({ as, children, ...props }, ref) => {
    const Component = as;
    return (<Component ref={ref} {...props}>{children}</Component>);
});

// Use case: The TextField is a MUI component 
<DynamicComponent  as={TextField} />

prince272 avatar Aug 21 '22 22:08 prince272