@prosperitainova/dumbo-react-native
Version:
Dumbo for React Native Library
27 lines • 1.26 kB
TypeScript
import React from 'react';
import { ViewProps, StyleProp, ViewStyle } from 'react-native';
import { ButtonProps } from '../Button';
/** Props for DataTableHeader component */
export type DataTableHeaderProps = {
/** Primary action to render (right side action) */
primaryAction?: ButtonProps;
/** Secondary actions to render (left side action. Should only be icons normally. But not limited). If kind and overrideColor are not set will auto set to best combo for tables. */
secondaryActions?: ButtonProps[];
/** Style to set on the item */
style?: StyleProp<ViewStyle>;
/** Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this. */
componentProps?: ViewProps;
};
/**
* DataTableHeader component for rendering a data table header.
* Used as a child of DataTable
*
* {@link https://github.com/carbon-design-system/carbon-react-native/blob/main/example/src/Views/DataTable.tsx | Example code}
*/
export declare class DataTableHeader extends React.Component<DataTableHeaderProps> {
private get styles();
private get secondaryActions();
private get primaryAction();
render(): React.ReactNode;
}
//# sourceMappingURL=DataTableHeader.d.ts.map