Ajit T Stephen
Ajit T Stephen

Reputation: 470

Issue in styling Material UI CardHeader component's text

How can I use CardHeader props title & titleTypographyProps to play around look and feel of Header Text

Material UI Docs: Api Doc

Sample Sandbox: Here you can look at code

Upvotes: 5

Views: 8171

Answers (1)

Nikolay
Nikolay

Reputation: 1949

XXXTypographyProps is forwarded to Typography of XXX (header, subheader, etc) component element.

For example:

titleTypographyProps={{align:"right"}}

Will align header to the right.

Check documentation of the Typography component for full properties list.

Upvotes: 4

Related Questions