Tuesday, November 29, 2022
HomeWordPress DevelopmentIs it attainable to do away with the wrapping divs on a...

Is it attainable to do away with the wrapping divs on a block element?


I’ve a primary RadioControl that I am utilizing to make a customized block:

<RadioControl
            className="score"
            label="Score from shopper"
            assist="Score from 1 to five stars"
            chosen={ attributes.score }
            choices={ [
                { label: '1 star', value: '1' },
                { label: '2 stars', value: '2' },
                { label: '3 stars', value: '3' },
                { label: '4 stars', value: '4' },
                { label: '5 stars', value: '5' },
            ] }
            onChange={ ( worth ) => setAttributes( { score: worth } ) }
/>

Nevertheless it wraps every group of enter/label in particular person divs. Is there anyway to take management of this output within the editor and, for instance, take away the components-radio-control__option div??

<div class="components-radio-control__option">
    <enter id="inspector-radio-control-0-2" class="components-radio-control__input" sort="radio" identify="inspector-radio-control-0" aria-describedby="inspector-radio-control-0__help" worth="3">
    <label for="inspector-radio-control-0-2"></label>
</div>

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments