@fluentui-react-native/text
TypeScript icon, indicating that this package has built-in type declarations

0.24.15 • Public • Published

Text

A cross-platform Text component using the Fluent Design System.

Text elements can be specified either by passing a variant typography token into a TextV1 element or by using predefined JSX types. For example:

import { Body1, TextV1 } from '@fluentui-react-native/text';

const myText = <TextV1 variant="body1">Here is some body text</TextV1>;
const moreText = <Body1>Here is some more body text</Body1>;

The former is better if you want to have more fine control over the appearance of your text, while the latter is better if you're looking for the simplest way to add a pre-styled text component.

See SPEC.md for more implementation details.

Text V1 supported platforms: win32

Readme

Keywords

none

Package Sidebar

Install

npm i @fluentui-react-native/text

Weekly Downloads

882

Version

0.24.15

License

MIT

Unpacked Size

392 kB

Total Files

134

Last publish

Collaborators

  • jasonvmorse
  • acoates
  • falselobster
  • uifrnbot
  • travisspomer
  • hansenyy