Next.js component types for Mathsy applications
npm install mathsy-next-componentbash
npm install mathsy-next-component
or
yarn add mathsy-next-component
`
Usage
`typescript
import { CustomNextComponent } from 'mathsy-next-component';
const MyPage: CustomNextComponent = () => {
return My Page;
};
// 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 background
- hideFooter?: boolean - Controls footer visibility
- hideNav?: boolean - Controls navigation visibility
Development
1. Clone the repository
2. Install dependencies: yarn install
3. Build the package: yarn build`