What this family solves
Non-heading typography component for labels, captions, overline, microcopy, and supporting body text where consumers choose the native element.
Marwes documentation
Non-heading typography component for labels, captions, overline, microcopy, and supporting body text where consumers choose the native element.
Non-heading typography component for labels, captions, overline, microcopy, and supporting body text where consumers choose the native element.
Use Text for shorter labels, captions, and overlines; use Paragraph for body copy and Heading for document structure.
Inline or block text across display, label, caption, and overline variants
Choose an adapter in the verified examples. The inventory below reflects each framework package exactly.
@marwes-ui/reactText, TypographyText
TextAs, TextComponent, TextProps
@marwes-ui/vueText, TypographyText
TextAs, TextComponent, TextProps
@marwes-ui/svelteText, TypographyText
TextAs, TextProps
These examples come from the same fixtures verified by the repository checks.
import { H1, H2, H3, Paragraph, Text, TextVariant } from "@marwes-ui/react"
export function Example() {
return (
<>
<Text variant={TextVariant.display}>Display</Text>
<H1>Heading 1</H1>
<H2>Heading 2</H2>
<H3>Heading 3</H3>
<Paragraph size="md">Body paragraph text.</Paragraph>
<Paragraph size="sm">Small body paragraph.</Paragraph>
<Text variant={TextVariant.label}>Label default</Text>
<Text variant={TextVariant.labelSmall}>Label small</Text>
<Text variant={TextVariant.caption}>Caption</Text>
<Text variant={TextVariant.overline}>Overline</Text>
</>
)
}<script setup lang="ts">
import { H1, H2, H3, Paragraph, Text, TextVariant } from "@marwes-ui/vue"
</script>
<template>
<Text :variant="TextVariant.display">Display</Text>
<H1>Heading 1</H1>
<H2>Heading 2</H2>
<H3>Heading 3</H3>
<Paragraph size="md">Body paragraph text.</Paragraph>
<Paragraph size="sm">Small body paragraph.</Paragraph>
<Text :variant="TextVariant.label">Label default</Text>
<Text :variant="TextVariant.labelSmall">Label small</Text>
<Text :variant="TextVariant.caption">Caption</Text>
<Text :variant="TextVariant.overline">Overline</Text>
</template><script lang="ts">
import { H1, H2, H3, Paragraph, Text, TextVariant } from "@marwes-ui/svelte"
</script>
<Text variant={TextVariant.display}>Display</Text>
<H1>Heading 1</H1>
<H2>Heading 2</H2>
<H3>Heading 3</H3>
<Paragraph size="md">Body paragraph text.</Paragraph>
<Paragraph size="sm">Small body paragraph.</Paragraph>
<Text variant={TextVariant.label}>Label default</Text>
<Text variant={TextVariant.labelSmall}>Label small</Text>
<Text variant={TextVariant.caption}>Caption</Text>
<Text variant={TextVariant.overline}>Overline</Text>Text uses Marwes preset CSS and theme variables. Customize it through the theme passed to MarwesProvider; do not add a second component stylesheet. See the theming guide for configuration and token details.