Skip to content

Commit

Permalink
Merge pull request #244 from storybookjs/shilman/add-rnw-to-frameworks
Browse files Browse the repository at this point in the history
HomeRenderers: Add RNW-Vite to framework list
  • Loading branch information
kylegach authored Nov 21, 2024
2 parents acf5993 + 0aa57ce commit 9908c20
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![Storybook Web Light](github-light.png#gh-light-mode-only)
![Storybook Web Dark](github-dark.png#gh-dark-mode-only)

Welcome to the new home for Storybook's main website and documentation. This project is still in progress but will soon replace the existing platform. It is mainly built around Next.js, Tailwind, Turborepo and obviously Storybook ✌️
Welcome to the new home for Storybook's main website and documentation. It is mainly built around Next.js, Tailwind, Turborepo and obviously Storybook ✌️

## Monorepo

Expand Down
16 changes: 15 additions & 1 deletion apps/frontpage/components/docs/mdx/home-renderers.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import Image from 'next/image';
import Link from 'next/link';
import type { DocsVersion } from '@repo/utils';

export function HomeRenderers() {
interface HomeRenderersProps {
activeVersion: DocsVersion;
}

export function HomeRenderers({ activeVersion }: HomeRenderersProps) {
return (
<div className="mb-6 grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3">
<Card
Expand All @@ -21,10 +26,19 @@ export function HomeRenderers() {
subtitle="with Webpack"
title="React"
/>
{Number(activeVersion.id) >= 8.5 ? (
<Card
href="/docs/get-started/frameworks/react-native-web-vite/?renderer=react-native-web"
logo="logo-react.svg"
subtitle="with Vite (in browser)"
title="React Native Web"
/>
) : null}
<Card
href="https://github.com/storybookjs/react-native"
logo="logo-react.svg"
title="React Native"
subtitle="on device"
/>
<Card
href="/docs/get-started/frameworks/vue3-vite/?renderer=vue"
Expand Down
2 changes: 1 addition & 1 deletion apps/frontpage/lib/get-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const getPageData = async (
<div {...props}>{props.children}</div>
),
HomeConcepts,
HomeRenderers,
HomeRenderers: () => <HomeRenderers activeVersion={activeVersion} />,
HomeResources,
If,
IfRenderer: If,
Expand Down

0 comments on commit 9908c20

Please sign in to comment.