eb9a500d4c
### Example - added declaration file types for the used theme [Create a declarations file](https://styled-components.com/docs/api#create-a-declarations-file) - added custom styled component that wraps an `<a>` tag like the next js docs as example [Next link DOCS](https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag) - changed the ui page like the `create-next-app` examples ### Dependencies - updated deps to latest - added types for SC => @types/styled-components - removed react-is, unused in this example [Example deploy](https://stylednextexample.vercel.app/) ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [x] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
21 lines
442 B
JSON
21 lines
442 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "next",
|
|
"build": "next build",
|
|
"start": "next start"
|
|
},
|
|
"dependencies": {
|
|
"next": "latest",
|
|
"react": "^18.2.0",
|
|
"react-dom": "^18.2.0",
|
|
"styled-components": "^5.3.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^18.0.0",
|
|
"@types/react": "^18.0.14",
|
|
"@types/react-dom": "^18.0.5",
|
|
"@types/styled-components": "^5.1.25",
|
|
"typescript": "^4.7.4"
|
|
}
|
|
}
|