Skip to content
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: stackblitz migration #2524

Merged
merged 3 commits into from
Apr 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions docs/utilities/ssr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ useHydrateAtoms([
] as const)
```

### Codesandbox
### Demo

<CodeSandbox id="snu7n" />
<Stackblitz id="stackblitz-starters-b7cvxi" file="pages%2Findex.tsx" />

There's more examples in the [Next.js section](../guides/nextjs.mdx).
2 changes: 1 addition & 1 deletion website/src/components/stackblitz.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const Stackblitz = ({ id, file }) => {
return (
<div className="mb-8 overflow-hidden rounded-md border-b border-gray-200 shadow-lg dark:!shadow-none sm:rounded-lg">
<div className="mb-8 mt-4 overflow-hidden rounded-md border-b border-gray-200 shadow-lg dark:!shadow-none sm:rounded-lg">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandren in case you want to review it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, this would add some top margin to the Stackblitz block to keep it from too close to the heading above.
Screenshot 2024-04-26 at 4 52 21 PM

<iframe
title={id}
className="h-[400px] w-full"
Expand Down
Loading