I am using a <Form/>
component from a component library. The form has a child component for the submit button.
const loginForm = [
{
label: "Username",
required: true,
type: "text"
},
{
label: "Password",
required: true,
type: "password"
}
]
<LoginForm
width={{ xs: 12, md: 4 }}
autoComplete={false}
buttonDisabled={buttonDisabled}
buttonLabel="LOGIN"
fields={loginForm}
onChange={this.onChange}
onSubmit={data => login({ variables: data })}
/>
which generates this html:
I am wanting to target the button to style it. Was hoping to do something like this:
const LoginForm = styled(Form)`
Button_StyledButton{
outline: black solid 10px;
}
`
Essentially targeting the form and then the child button component.
Can this be done with styled components?