I am trying to add a checkbox next to the save button. The save and the cancel buttons are inside a lightning card <p slot ="footer">. The checkbox does not appear in the same row as that of the save and cancel buttons. It's appearing in the next row.
My code:
<p slot="footer"> <lightning-button class="slds-float_none" variant="neutral" label="Cancel" title="Cancel" onclick={handleCancel}> </lightning-button> <lightning-button class="slds-float_none" variant="brand" label="Save" title="Save" onclick={handleSave}> </lightning-button> <lightning-input type="checkbox" label="Red"></lightning-input> </p> Should I be using normal footer and lightning-layout/Layout-item instead?