UNPKG

react-native-paper

Version:
53 lines 1.4 kB
import * as React from 'react'; import { StyleProp, View, ViewStyle } from 'react-native'; import type { ThemeProp } from '../../types'; export declare type Props = React.ComponentPropsWithRef<typeof View> & { /** * Content of the `DataTableHeader`. */ children: React.ReactNode; style?: StyleProp<ViewStyle>; /** * @optional */ theme?: ThemeProp; }; /** * A component to display title in table header. * * <div class="screenshots"> * <figure> * <img class="medium" src="screenshots/data-table-header.png" /> * </figure> * </div> * * * ## Usage * ```js * import * as React from 'react'; * import { DataTable } from 'react-native-paper'; * * const MyComponent = () => ( * <DataTable> * <DataTable.Header> * <DataTable.Title * sortDirection='descending' * > * Dessert * </DataTable.Title> * <DataTable.Title numeric>Calories</DataTable.Title> * <DataTable.Title numeric>Fat (g)</DataTable.Title> * </DataTable.Header> * </DataTable> * ); * * export default MyComponent; * ``` */ declare const DataTableHeader: { ({ children, style, theme: themeOverrides, ...rest }: Props): JSX.Element; displayName: string; }; export default DataTableHeader; export { DataTableHeader }; //# sourceMappingURL=DataTableHeader.d.ts.map