function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rajesh Singh 88Rajesh Singh 88 

Show 1st word of the sentence in BOLD letters in a radio button group values in Lightning Component

I have a requirement to show the 1st word in BOLD letter of sentences/line having multiple words which are the values of each radio button using Lightning Component.
Example: In the below example the first word is in BOLD
  • This is line 1
  • This is line 2
  • This is line 3  
ShirishaShirisha (Salesforce Developers) 
Hi Rajesh,

Greetings!

You need to use the css for the radio button groups in lightning component as suggested here.

Reference:https://sfdcmonkey.com/2018/08/03/radio-button-group-horizontal-view/

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Rajesh Singh 88Rajesh Singh 88
Hi Shirisha,

I have already developed the radio button group and all the required data is coming properly but my requirement is to get the first word in BOLD in the sentence and the rest in normal text.

Example: In the below example the first word is in BOLD
  • This is line 1
  • This is line 2
  • This is line 3