Skip to content

CardTitle

Cards contain content and actions about a single subject. material.io

Importing

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
import React from "react";
import { Card, CardTitle } from "photoncss/react";

export default function Component() {
    return (
        <Card>
            <CardTitle>Title</CardTitle>
            ...content
        </Card>
    );
}

Props

Name Default Possible Values Type Description
seperated true Boolean value boolean Determines if the title has an underline seperating it from the cards body content.
subtitle String value string Sets subtitle of the card.

Note

Props other than those listed above such as className and style will be passed directly to the <div/> element.


See also: