-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Add Templates listing to examples page #4449
Conversation
bharatkashyap
commented
Nov 22, 2024
•
edited
Loading
edited
- Add the themed example as a featured example on the existing docs page, in the style of the Material UI templates list
- Link to this section from the Material UI docs
- https://deploy-preview-4449--mui-toolpad-docs.netlify.app/toolpad/core/templates/nextjs-dashboard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The featured example looks good: https://deploy-preview-4449--mui-toolpad-docs.netlify.app/toolpad/core/introduction/examples/ 🙌
@@ -9,4 +9,10 @@ title: Examples | |||
|
|||
<!-- #default-branch-switch --> | |||
|
|||
{{"component": "modules/components/ExamplesGrid/ExamplesGrid.tsx", "examplesFile": "core-examples.ts"}} | |||
## Featured Examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use sentence case
## Featured Examples | |
## Featured examples |
Fixing this in #4350.
|
||
export default function FeaturedExamples(props: FeaturedExamplesProps) { | ||
const [examples, setExamples] = React.useState<Example[]>([]); | ||
const [loading, setLoading] = React.useState(true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please no loading state, fixing this in #4350.
@@ -9,4 +9,10 @@ title: Examples | |||
|
|||
<!-- #default-branch-switch --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
description: string; | ||
src: string; | ||
srcDark?: string; | ||
href: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'This app shows you how to get started using Toolpad Core with Next.js, Auth.js and customize the Material UI theme', | ||
src: '/static/toolpad/docs/core/auth-next-themed.png', | ||
srcDark: '/static/toolpad/docs/core/auth-next-themed-dark.png', | ||
'This example shows you how to get started building a dashboard with Toolpad Core, Next.js app router, Auth.js and Material UI components in a customized theme', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leading dot:
'This example shows you how to get started building a dashboard with Toolpad Core, Next.js app router, Auth.js and Material UI components in a customized theme', | |
'This example shows you how to get started building a dashboard with Toolpad Core, Next.js app router, Auth.js and Material UI components in a customized theme.', |
Fixed this and the others in #4558