UNPKG

901 BTypeScriptView Raw
1import * as React from 'react';
2import { StyleProp, View, ViewStyle } from 'react-native';
3import type { ThemeProp } from 'src/types';
4export type Props = React.ComponentPropsWithRef<typeof View> & {
5 /**
6 * Items inside the `CardActions`.
7 */
8 children: React.ReactNode;
9 style?: StyleProp<ViewStyle>;
10 theme?: ThemeProp;
11};
12/**
13 * A component to show a list of actions inside a Card.
14 *
15 * ## Usage
16 * ```js
17 * import * as React from 'react';
18 * import { Card, Button } from 'react-native-paper';
19 *
20 * const MyComponent = () => (
21 * <Card>
22 * <Card.Actions>
23 * <Button>Cancel</Button>
24 * <Button>Ok</Button>
25 * </Card.Actions>
26 * </Card>
27 * );
28 *
29 * export default MyComponent;
30 * ```
31 */
32declare const CardActions: {
33 (props: Props): React.JSX.Element;
34 displayName: string;
35};
36export default CardActions;
37//# sourceMappingURL=CardActions.d.ts.map
\No newline at end of file