- Android
- iOS
- Web
Text
Display headings, labels or body text.
Engine API NTextnayan-ui/components
Example.tsx
| Name | Type | Default | Details |
|---|---|---|---|
| children | ReactNode | Optional | |
| text | string | Optional | |
| tag | string | Optional | |
| className | string | Optional | Supported Tailwind-style utilities, resolved entirely in Rust. See the engine README. |
| style | ComponentStyleProp | Optional | |
| numberOfLines | number | Optional | |
| selectable | boolean | Optional | Set false to exclude rendered browser text from selection and copying. |
| accessibilityLabel | string | Optional | |
| 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> | null | Optional |