Answers for "on focus border color css"

1

change border color focus

state: {
    isFocused: true
}

 handleFocus = () => this.setState({isFocused: true})

 handleBlur = () => this.setState({isFocused: false})

 <TextInput
         onFocus={this.handleFocus}
         onBlur={this.handleBlur}
         style={[//Your Styles, {
             borderBottomColor: this.state.isFocused
                 ? 'black'
                 : 'red',
             borderBottomWidth: 1,
         }]}
     />
Posted by: Guest on October-12-2021
0

css keep focus color on div after click

button.selected{
  color:red;
}
Posted by: Guest on February-17-2021

Code answers related to "on focus border color css"

Browse Popular Code Answers by Language