How to make label bold in Polaris TextField?

Solved

How to make label bold in Polaris TextField?

wayforward
Shopify Partner
33 3 4

Hi,

 

I can see label and requiredindicator property in <TextField> but is there a way to make the label text bold?

 

Thanks!

Accepted Solution (1)

arifkpi
Shopify Partner
5 1 1

This is an accepted solution.

I usually do this I need to bold text withTextField

 

<TextField
label={<Text as="h4" variant="headingMd">Text Here</Text>}
...
/>

View solution in original post

Replies 3 (3)

ProtoMan44
Shopify Partner
510 43 80

@wayforward hey, thanks for posting here.
 can you please share the link to inspect it, thanks.

- A thirsty developer passionate about supporting the community. If you'd like to, you can  

Buy me a Coffee.


- Your Shopify Solution Specialist Get a Quote at

ProtoMan44

 - 

Chat On Whatsapp


Crafting exceptional e-commerce experiences to elevate your online presence. Let's build your success story together!

arifkpi
Shopify Partner
5 1 1

This is an accepted solution.

I usually do this I need to bold text withTextField

 

<TextField
label={<Text as="h4" variant="headingMd">Text Here</Text>}
...
/>
wayforward
Shopify Partner
33 3 4

I should have thought about it 😁