Text

Plain text.

Interface: IText.

See the parameters of this component in storybook.

Text

Extra parameters

text

The text inserted into the component.

Type: string

Example: "Sample for text component"

Example

import {type IText} from "@onlyoffice/docspace-plugin-sdk"

const text: IText = {
  text: "Sample for text component",
  fontWeight: 600,
  fontSize: "13px",
  lineHeight: "20px",
  noSelect: true,
}

Get Help

  • If you have any questions about ONLYOFFICE DocSpace, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).