A link button has the following properties:

  • spacerSize: the amount of space the component should take up. One of XS, S, M, L, XL.

For example:

import { uiComponent } from '@team-plain/typescript-sdk';

[
  uiComponent.text({ text: 'Content before an XS spacer' }),
  uiComponent.spacer({ spacingSize: 'XS' }),
  uiComponent.text({ text: 'Content after spacer' }),
];