Skip to content

FR (Primitives): Add Style Props for PasswordField button #708

Open
@dreamorosi

Description

This issue is related to the amplify-ui@next for React.

At the moment styling the show password button of a PasswordField component requires reaching out to CSS (at least as far as I could find/manage) and it would be really handy if it'd be possible to style the button in a similar way to the one available for the descriptiveText prop:

<PasswordField
  label="Password"
  name="password"
  showPasswordButton={
    <Button color="rebeccapurple" fontStyle="italic" fontSize="0.8rem" />
  }
/>

Alternatively it'd be great to even just be able to pass specific props to override the default ones like this:

<PasswordField
  label="Password"
  name="password"
  showPasswordButtonProps={
    color: "rebeccapurple",
    fontStyle: "italic",
    fontSize: "0.8rem"
  }
/>

Activity

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

Metadata

Assignees

No one assigned

    Labels

    PrimitiveAn issue or a feature-request for one or more UI PrimitiveReactAn issue or a feature-request for React platformfeature-requestRequest a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions