react-tiny-fab icon indicating copy to clipboard operation
react-tiny-fab copied to clipboard

Add Style to texts

Open smajumder2017 opened this issue 4 years ago • 5 comments
trafficstars

Can we add a props to style the texts?

smajumder2017 avatar Feb 18 '21 06:02 smajumder2017

What styles are you trying to add, just so I am on the same page?

dericcain avatar May 15 '21 12:05 dericcain

To change the Texts I mean to make it bold or italic or to change the font size

smajumder2017 avatar Jul 29 '21 08:07 smajumder2017

@smajumder2017 Are you talking about the labels beside the buttons or the icons inside the button?

It looks like this could possibly be achieved simply by changing this type to React.ReactNode which would allow the Action text prop accept any type of React Component.

dericcain avatar Jul 31 '21 11:07 dericcain

@dericgw Yes, That can be done also. I mean text:string | React.React.Node will work i guess

smajumder2017 avatar Aug 01 '21 06:08 smajumder2017

image @dericcain Once I'm passing one html element and passing custom styles to it(For the label of action). then black border appears over it Even After I have passed {border:none, outline: none}. I have added screenshot as well Can u pls reply me asap.
Can you tell me how can I remove this black Outline ?

Ashutosh-Roxiler avatar Jan 21 '22 08:01 Ashutosh-Roxiler