Skip to content
  • Web

Table

A Table component is a structured UI element that organizes and displays data in rows and columns, making it easy to read and compare information. Tables can include features like sorting, filtering, pagination, and inline editing, allowing users to interact with the data efficiently. They are commonly used to present datasets, such as user information, product listings, or any structured content that benefits from a grid-like layout.

Live examples

Example.tsx
NameEmailRole
Alicealice@example.comAdmin
Bobbob@example.comMember
Charliecharlie@example.comViewer

Attributes

A web tag also accepts the HTML attributes for that element.

NView attributes
NameTypeDefaultDetails
childrenReactNodeOptional
tagstringOptional
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.
stylefalse | void | "" | ComponentStyle | readonly ComponentStyleProp[] | ViewStyle | readonly StyleProp<ViewStyle>[] | nullOptional
idstringOptional
rolestringOptional
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: HTMLElement | 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<HTMLElement | null> | ((instance: NViewRef | 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<NViewRef | null> | nullOptional
Engine reference for ViewSet up engine components

Tags