Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: export UI components #253

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shfshanyue
Copy link

What kind of change does this PR introduce?

export UI components such as Input Label, etc. In order to extend and adopt the same style as the <Auth /> component.

for example:add the username attribute to <EmailAuth> component when viewType = signup

const [ name, setName ] = useState('')

<Auth
  supabaseClient={supabase}
  additionalData={{
    name
  }}
>
  <div>
    <Label htmlFor="username" appearance={appearance}>
      {labels?.password_label}
    </Label>
    <Input
      id="username"
      type="text"
      name="username"
      onChange={(e: React.ChangeEvent<HTMLInputElement>) =>
        setName(e.target.value)
      }
      appearance={appearance}
    />
  </div>
</Auth>

What is the current behavior?

Please link any relevant issues here.

What is the new behavior?

Feel free to include screenshots if it includes visual changes.

Additional context

Add any other context or screenshots.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant