Icon buttons can be used to add prefix and suffix labels to form inputs, such as text fields and select boxes.
Icon Buttons
message text
code
<scripttype="module">import'@blueprintui/icons/include.js';import'@blueprintui/icons/shapes/cloud.js';import'@blueprintui/icons/shapes/close.js';import'@blueprintui/icons/shapes/info.js';</script><bp-form-grouplayout="vertical"><bp-field><label>icon</label><bp-inputplaceholder="example"><bp-button-iconreadonlyslot="prefix"action="inline"><bp-iconshape="cloud"badge="success"></bp-icon></bp-button-icon></bp-input></bp-field><bp-field><label>icon button</label><bp-inputtype="url"><bp-button-iconaction="inline"shape="close"slot="suffix"aria-label="clear example input"></bp-button-icon></bp-input></bp-field><bp-field><label>icon button label</label><bp-button-iconaction="inline"slot="label"shape="info"aria-label="get more details"></bp-button-icon><bp-inputplaceholder="example"></bp-input></bp-field><bp-field><label>icon button message</label><bp-input></bp-input><bp-field-message>
message text
<bp-button-iconshape="info"action="inline"aria-label="get more details"></bp-button-icon></bp-field-message></bp-field><!-- <bp-password>
<label>additional actions to existing input types</label>
<input type="password" value="123456" />
<bp-button-icon shape="close" aria-label="clear password input"></bp-button-icon>
</bp-password> --></bp-form-group>
Icon button can be used to add prefix and suffix icons to form inputs types. Interactive icon buttons should have aria-label attribute to provide a label for screen readers.