Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions playgrounds/custom-layout/docs/components/CustomHero/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { useConfig } from '../../../../../src/hooks.js'

const CustomHero = () => {
const config = useConfig()

return (
<section>
<h1>
<b>Config Title:</b> {config?.title ?? ''}
</h1>
</section>
)
}

export default CustomHero
6 changes: 5 additions & 1 deletion playgrounds/custom-layout/docs/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import CustomHero from '../components/CustomHero';

<CustomHero />

# Overview

Example overview page with custome layout.

## Example Section

Hello there.
Hello there.../components/CustomHero
1 change: 1 addition & 0 deletions src/hooks.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { useConfig } from './app/hooks/useConfig.js'