mathsy-next-component
v1.0.0
Published
Next.js component types for Mathsy applications
Readme
Mathsy Next Component
Type definitions for Next.js components in Mathsy applications.
Installation
npm install mathsy-next-component
# or
yarn add mathsy-next-componentUsage
import { CustomNextComponent } from 'mathsy-next-component';
const MyPage: CustomNextComponent = () => {
return <div>My Page</div>;
};
// Set page-specific properties
MyPage.isDarkBackground = true;
MyPage.hideFooter = true;
MyPage.hideNav = false;
export default MyPage;Available Types
CustomNextComponent: A Next.js component type with additional properties:isDarkBackground?: boolean- Indicates if the page has a dark backgroundhideFooter?: boolean- Controls footer visibilityhideNav?: boolean- Controls navigation visibility
Development
- Clone the repository
- Install dependencies:
yarn install - Build the package:
yarn build
License
MIT
