UNPKG

1.08 kBTypeScriptView Raw
1import * as React from 'react';
2import { StyleProp, View, ViewStyle } from 'react-native';
3export declare type Props = React.ComponentPropsWithRef<typeof View> & {
4 /**
5 * Items inside the `Card.Content`.
6 */
7 children: React.ReactNode;
8 /**
9 * @internal
10 */
11 index?: number;
12 /**
13 * @internal
14 */
15 total?: number;
16 /**
17 * @internal
18 */
19 siblings?: Array<string>;
20 style?: StyleProp<ViewStyle>;
21};
22/**
23 * A component to show content inside a Card.
24 *
25 * ## Usage
26 * ```js
27 * import * as React from 'react';
28 * import { Card, Text } from 'react-native-paper';
29 *
30 * const MyComponent = () => (
31 * <Card>
32 * <Card.Content>
33 * <Text variant="titleLarge">Card title</Text>
34 * <Text variant="bodyMedium">Card content</Text>
35 * </Card.Content>
36 * </Card>
37 * );
38 *
39 * export default MyComponent;
40 * ```
41 */
42declare const CardContent: {
43 ({ index, total, siblings, style, ...rest }: Props): React.JSX.Element;
44 displayName: string;
45};
46export default CardContent;
47//# sourceMappingURL=CardContent.d.ts.map
\No newline at end of file