Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot reduce the fontSize of label in reactjs using semantic-ui-react

If I have form input which label --> I cannot reduce the size of the label.

In this example fontSize will not be applied:

<Form.Input label="Username" style={{fontSize: '10px'}}  />

Does someone has an idea about how to solve the issue?

like image 847
James Delaney Avatar asked Jan 27 '26 16:01

James Delaney


1 Answers

Can you try this simple way to apply css on any component.

.inputCls {
  font-size: 10px !important;
}
<Form.Input label="Username" className="inputCls"  />
like image 113
Chetan Singhal Avatar answered Jan 29 '26 07:01

Chetan Singhal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!