Skip to main content

Card.Title

A component to show a title, subtitle inside a Card.

How to use

import  React from 'react';
import {Card} from '@gyri/native-ui-components';

const MyComponent = ({title, subtitle}) => (
<Card>
<Card.Title title={title} subtitle={subtitle}/>
</Card>
);

export default MyComponent;

Props

#NameData typeDefault valueValuesDescription
1title (required)stringText for the title.
2subtitlestringText for the Subtitle.
3titleStyleStyle for the title.
4titleNumberOfLinesnumber1Number of lines for the title.
5subtitleNumberOfLinesnumber1Number of lines for the subtitle.
6leftCallback which returns a React element to display on the left side.
7rightCallback which returns a React element to display on the right side.

For more detail visit https://callstack.github.io/react-native-paper/docs/components/Card/CardTitle