Skip to content

Support for MUI TextField #177

Description

@prince272

Consider using this

export const CodeInput = forwardRef(({ as, children, ...props }, ref) => {
    const Component = as;
    return (<Component ref={ref} {...props}>{children}</Component>);
});

// Use case
<CodeInput as={TextField} />

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions