SplitButton Content SetupPremium
The SplitButton allows you to set the label of its main button through the text property. You can also add an icon or a custom React element before or after the label with prefix and suffix.
The following demo shows custom elements beside the label and SplitButtonItem children for the popup actions:
Main Button Label
Set the text property to provide the main SplitButton plain-text label:
<SplitButtonItem text="Save as" />
To place an SVG icon, image or custom React element next to the label, see Icon Options. Custom elements must use phrasing content and must not contain interactive content.
Popup Items
The content set through the text property renders in the main button, not in the popup. Define the popup actions with SplitButtonItem child components, or bind the items property to data. For more details, see Data Binding.