PHP Classes

File: src/components/layout/PageHeading.tsx

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   WordPress React Plugin Kit   src/components/layout/PageHeading.tsx   Download  
File: src/components/layout/PageHeading.tsx
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: WordPress React Plugin Kit
Environment to develop new WordPress plugins
Author: By
Last change:
Date: 2 years ago
Size: 411 bytes
 

Contents

Class file image Download
export interface IPageHeading { text: string; customClass?: string; show?: boolean; } const PageHeading = ({ text, customClass = '', show = true }: IPageHeading) => { const showHeading = typeof show !== 'undefined' ? show : true; return showHeading ? ( <h1 className={`text-2xl text-black ${customClass}`}>{text}</h1> ) : ( <></> ); }; export default PageHeading;