1 | import * as React from 'react';
|
2 | import { StyleProp, TextStyle, View, ViewStyle } from 'react-native';
|
3 | import type { ThemeProp } from '../../types';
|
4 | export declare type Props = React.ComponentPropsWithRef<typeof View> & {
|
5 | /**
|
6 | * Title text for the section.
|
7 | */
|
8 | title?: string;
|
9 | /**
|
10 | * Content of the section.
|
11 | */
|
12 | children: React.ReactNode;
|
13 | /**
|
14 | * @optional
|
15 | */
|
16 | theme?: ThemeProp;
|
17 | /**
|
18 | * Style that is passed to Title element.
|
19 | */
|
20 | titleStyle?: StyleProp<TextStyle>;
|
21 | style?: StyleProp<ViewStyle>;
|
22 | };
|
23 | /**
|
24 | * A component used to group list items.
|
25 | *
|
26 | * ## Usage
|
27 | * ```js
|
28 | * import * as React from 'react';
|
29 | * import { List, MD3Colors } from 'react-native-paper';
|
30 | *
|
31 | * const MyComponent = () => (
|
32 | * <List.Section>
|
33 | * <List.Subheader>Some title</List.Subheader>
|
34 | * <List.Item title="First Item" left={() => <List.Icon icon="folder" />} />
|
35 | * <List.Item
|
36 | * title="Second Item"
|
37 | * left={() => <List.Icon color={MD3Colors.tertiary70} icon="folder" />}
|
38 | * />
|
39 | * </List.Section>
|
40 | * );
|
41 | *
|
42 | * export default MyComponent;
|
43 | * ```
|
44 | */
|
45 | declare const ListSection: {
|
46 | ({ children, title, titleStyle, style, theme: themeOverrides, ...rest }: Props): React.JSX.Element;
|
47 | displayName: string;
|
48 | };
|
49 | export default ListSection;
|
50 | //# sourceMappingURL=ListSection.d.ts.map |
\ | No newline at end of file |