@antonyjones87/templates
v0.1.0
Published
Pre-built layouts for React projects
Maintainers
Readme
packages / templates
The templates package provides pre-built templates and layouts for common use cases, speeding up development and ensuring consistency across projects.
Explore other packages in the building-blocks monorepo
Getting started
To get started with using the components from this package in your project, follow these steps:
Install the
core-componentspackage from npm:npm install @antonyjones87/core-componentsIt's important to note that
core-componentsis a peer dependency of thetemplatespackage. This means that you'll need to installcore-componentsseparately in your project for the template components to work correctly.Install the
templatespackage from npm:npm install @antonyjones87/templatesImport and use the components in your React application, ensuring they are wrapped within the
ThemeProvidercomponent from thecore-componentspackage:import { Text, ThemeProvider } from '@antonyjones87/core-components'; import { PageStack } from '@antonyjones87/templates'; function App() { return ( <ThemeProvider theme="light"> <PageStack pageTitle="Hello, World!" pageContent={<Text>How are you today?</Text>} /> </ThemeProvider> ); }
