Skip to content

Input groups

Text fields can include elements before and after the input. This is useful for adding elements like text, icons, or buttons to the text field.

Append

Button
<certara-input required id="firstName" name="firstName">
<certara-button slot="append">Button</certara-button>
</certara-input>

Prepend

<certara-input required id="firstName" name="firstName">
<label slot="prepend">Label</label>
</certara-input>

Both

Button
<certara-input required id="firstName" name="firstName">
<label slot="prepend">Label</label>
<certara-button slot="append">Button</certara-button>
</certara-input>

Design resources

View component in Figma