UI Components
LinkButton
Useful when you want to link somewhere external (e.g. your own admin tool or payment provider)
A link button has the following properties:
linkButtonLabel
: the text of the buttonlinkButtonUrl
: the URL the button should open in a new tab
For example:
import { uiComponent } from '@team-plain/typescript-sdk';
uiComponent.linkButton({
label: 'Open in Admin Portal',
url: 'https://example.com',
});