Nextjs Core Headings

-
Pro Component

This component was made by us to make it easier to write the heading part of some pages from our dashboard views.


Style

You will find the styles for this component in assets/jss/nextjs-material-dashboard-pro/components/headingStyle.js.

Example

Title

content/subtitle

import React from "react";

import Heading from "components/Heading/Heading.js";

export default function Example(){
  return (
    <>
      <Heading
        textAlign="center"
        title="Title"
        category="content/subtitle"
      />
    </>
  );
}

Props

Heading.propTypes = {
  title: PropTypes.node,
  category: PropTypes.node,
  textAlign: PropTypes.oneOf(["right", "left", "center"])
};