Skip to content
  • Android
  • iOS
  • Web

Text

Display headings, labels or body text.

Engine API NTextnayan-ui/components

Live examples

Example.tsx

Attributes

NText attributes
NameTypeDefaultDetails
childrenReactNodeOptional
textstringOptional
tagstringOptional
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.
styleComponentStylePropOptional
numberOfLinesnumberOptional
selectablebooleanOptionalSet false to exclude rendered browser text from selection and copying.
accessibilityLabelstringOptional
ref((instance: ReactNativeElement | null) => void | (() => VoidOrUndefinedOnly) | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<ReactNativeElement | null> | ((instance: HTMLSpanElement | null) => void | (() => VoidOrUndefinedOnly) | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLSpanElement | null> | nullOptional

Tags