Skip to main content

Text

Example

import { components } from "replugged";
const { Text } = components;

<Text.Normal>This is an example</Text.Normal>;

Subcomponents

ComponentDescription
Text.EyebrowVariant eyebrow
Text.H1Variant heading-xl/bold and tag h1
Text.H2Variant heading-lg/semibold and tag h2
Text.H3Variant heading-md/bold and tag h3
Text.H4Variant heading-sm/bold and tag h4
Text.NormalVariant text-sm/normal and tag span

Props

info

The props of this component extend the attributes of the div element.

NameTypeDefaultDescription
allowMarkdownHeadingbooleanfalseWhether markdown headings are displayed; works together with markdown
allowMarkdownLinksbooleanfalseWhether markdown links are displayed; works together with markdown
allowMarkdownListbooleanfalseWhether markdown lists are displayed; works together with markdown
colorstringText color (variable name)
lineClampnumberHow many lines to clamp
markdownbooleanfalseWhether the text is markdown compatible
selectablebooleanfalseWhether the text is selectable
tabularNumbersbooleanfalseWhether the text font supports tabular numbers
tagstringdivDefine the text element tag
variantstringText variant (variant name)
tip

You can see all the different text variants with Discord's Text Components page, available with the developer settings enabled.