diff --git a/packages/dev/s2-docs/pages/react-aria/CheckboxGroup.mdx b/packages/dev/s2-docs/pages/react-aria/CheckboxGroup.mdx
index 18affe4b160..24a483bebaa 100644
--- a/packages/dev/s2-docs/pages/react-aria/CheckboxGroup.mdx
+++ b/packages/dev/s2-docs/pages/react-aria/CheckboxGroup.mdx
@@ -31,9 +31,10 @@ export const description = 'Allows a user to select multiple items from a list o
```
- ```tsx render docs={vanillaDocs.exports.CheckboxGroup} links={vanillaDocs.links} props={['label', 'description', 'isDisabled']} initialProps={{label: 'Favorite sports'}} type="tailwind" files={["starters/tailwind/src/Checkbox.tsx"]}
+ ```tsx render docs={vanillaDocs.exports.CheckboxGroup} links={vanillaDocs.links} props={['label', 'description', 'isDisabled']} initialProps={{label: 'Favorite sports'}} type="tailwind" files={["starters/tailwind/src/CheckboxGroup.tsx"]}
"use client";
- import {CheckboxGroup, Checkbox} from 'tailwind-starter/Checkbox';
+ import {CheckboxGroup} from 'tailwind-starter/CheckboxGroup';
+ import {Checkbox} from 'tailwind-starter/Checkbox';
Soccer
diff --git a/packages/dev/s2-docs/pages/react-aria/DisclosureGroup.mdx b/packages/dev/s2-docs/pages/react-aria/DisclosureGroup.mdx
index 18e6026a831..cf44222889e 100644
--- a/packages/dev/s2-docs/pages/react-aria/DisclosureGroup.mdx
+++ b/packages/dev/s2-docs/pages/react-aria/DisclosureGroup.mdx
@@ -31,9 +31,10 @@ export const description = 'A grouping of related disclosures, sometimes called
```
- ```tsx render docs={vanillaDocs.exports.DisclosureGroup} links={vanillaDocs.links} props={['allowsMultipleExpanded', 'isDisabled']} type="tailwind" files={["starters/tailwind/src/Disclosure.tsx"]}
+ ```tsx render docs={vanillaDocs.exports.DisclosureGroup} links={vanillaDocs.links} props={['allowsMultipleExpanded', 'isDisabled']} type="tailwind" files={["starters/tailwind/src/DisclosureGroup.tsx"]}
"use client";
- import {DisclosureGroup, Disclosure, DisclosureHeader, DisclosurePanel} from 'tailwind-starter/Disclosure';
+ import {DisclosureGroup} from 'tailwind-starter/DisclosureGroup';
+ import {Disclosure, DisclosureHeader, DisclosurePanel} from 'tailwind-starter/Disclosure';
diff --git a/packages/dev/s2-docs/pages/react-aria/FileTrigger.mdx b/packages/dev/s2-docs/pages/react-aria/FileTrigger.mdx
index b957935f4bc..8dce090e681 100644
--- a/packages/dev/s2-docs/pages/react-aria/FileTrigger.mdx
+++ b/packages/dev/s2-docs/pages/react-aria/FileTrigger.mdx
@@ -12,7 +12,7 @@ export const description = 'Allows a user to access the file system with any pre
{docs.exports.FileTrigger.description}
-```tsx render docs={docs.exports.FileTrigger} links={docs.links} props={['acceptedFileTypes', 'allowsMultiple', 'acceptDirectory', 'defaultCamera']} initialProps={{acceptedFileTypes: ['image/*']}} type="vanilla"
+```tsx render docs={docs.exports.FileTrigger} links={docs.links} props={['acceptedFileTypes', 'allowsMultiple', 'acceptDirectory', 'defaultCamera']} initialProps={{acceptedFileTypes: ['image/*']}} type="vanilla" hideShadcn
"use client";
import {FileTrigger} from 'react-aria-components';
import {Button} from 'vanilla-starter/Button';
diff --git a/packages/dev/s2-docs/pages/react-aria/getting-started.mdx b/packages/dev/s2-docs/pages/react-aria/getting-started.mdx
index 75bb9f0abfc..22f75a589c4 100644
--- a/packages/dev/s2-docs/pages/react-aria/getting-started.mdx
+++ b/packages/dev/s2-docs/pages/react-aria/getting-started.mdx
@@ -28,7 +28,7 @@ Install React Aria with your preferred package manager.
## Quick start
-The documentation for each component includes vanilla CSS and [Tailwind](https://tailwindcss.com) examples. Copy and paste these into your project and make them your own. You can also download each example as a ZIP or open in StackBlitz.
+Copy and paste the CSS or [Tailwind](https://tailwindcss.com) examples into your project and make them your own. You can also download each example as a ZIP, open in StackBlitz, or install with [shadcn](https://ui.shadcn.com/docs/cli).
```tsx render docs={docs.exports.Select} links={docs.links} props={[]} type="vanilla" files={["starters/docs/src/Select.tsx", "starters/docs/src/Select.css"]} showCoachMark
@@ -63,9 +63,9 @@ The documentation for each component includes vanilla CSS and [Tailwind](https:/
### shadcn CLI
-Each example can also be installed with the [shadcn](https://ui.shadcn.com/docs/cli) CLI. This will add the component source code, styles, and all dependencies to your project automatically.
+Use the [shadcn](https://ui.shadcn.com/docs/cli) CLI to add the example code, styles, and dependencies to your project. Install individual components using the menu on each example, or add all components with the command below.
-
+
### Storybook starter kits
diff --git a/packages/dev/s2-docs/src/ShadcnCommand.tsx b/packages/dev/s2-docs/src/ShadcnCommand.tsx
index 0ec25969c85..43eeaeb8051 100644
--- a/packages/dev/s2-docs/src/ShadcnCommand.tsx
+++ b/packages/dev/s2-docs/src/ShadcnCommand.tsx
@@ -7,7 +7,7 @@ import Prompt from '@react-spectrum/s2/icons/Prompt';
import {RefObject} from 'react';
import {useLocalStorage} from './useLocalStorage';
-export function ShadcnCommand({type, component, preRef}: {type: 'vanilla' | 'tailwind', component: string, preRef?: RefObject}) {
+export function ShadcnCommand({type, component, preRef}: {type?: 'vanilla' | 'tailwind', component?: string, preRef?: RefObject}) {
let [packageManager, setPackageManager] = useLocalStorage('packageManager', 'npm');
let command = packageManager;
if (packageManager === 'npm') {
@@ -20,10 +20,12 @@ export function ShadcnCommand({type, component, preRef}: {type: 'vanilla' | 'tai
setPackageManager(String(value));
};
- let shadcnType = type === 'vanilla' ? 'css' : type;
+ let [storedType, setStoredType] = useLocalStorage('style', type || 'Vanilla CSS');
+ let shadcnType = type === 'vanilla' || storedType === 'Vanilla CSS' ? 'css' : 'tailwind';
+ let componentName = component ? '-' + component.toLowerCase() : '';
let specifier = process.env.DOCS_ENV === 'prod'
- ? `@react-aria/${shadcnType}-${component.toLowerCase()}`
- : `${getBaseUrl('react-aria')}/registry/${shadcnType}-${component.toLowerCase()}.json`;
+ ? `@react-aria/${shadcnType}${componentName}`
+ : `${getBaseUrl('react-aria')}/registry/${shadcnType}${componentName}.json`;
let cmd = `${command} shadcn@latest add ${specifier}`;
@@ -37,11 +39,24 @@ export function ShadcnCommand({type, component, preRef}: {type: 'vanilla' | 'tai
flexDirection: 'column',
gap: 16
})}>
-
- npm
- yarn
- pnpm
-
+