diff --git a/apps/docs/components/docs/components/code-demo/code-demo.tsx b/apps/docs/components/docs/components/code-demo/code-demo.tsx index 6da1bb4799..7502c57561 100644 --- a/apps/docs/components/docs/components/code-demo/code-demo.tsx +++ b/apps/docs/components/docs/components/code-demo/code-demo.tsx @@ -59,7 +59,7 @@ export const CodeDemo: React.FC = ({ isPreviewCentered = false, // when false .js files will be used typescriptStrict = false, - showOpenInCodeSandbox, + showOpenInCodeSandbox = true, isGradientBox = false, defaultExpanded = false, previewHeight = "auto", @@ -142,7 +142,7 @@ export const CodeDemo: React.FC = ({ files={files} highlightedLines={highlightedLines} showEditor={showEditor} - showOpenInCodeSandbox={showOpenInCodeSandbox || showPreview} + showOpenInCodeSandbox={showOpenInCodeSandbox} showPreview={showSandpackPreview} typescriptStrict={typescriptStrict} /> diff --git a/apps/docs/content/docs/components/autocomplete.mdx b/apps/docs/content/docs/components/autocomplete.mdx index 435dfa31a7..cddaad643c 100644 --- a/apps/docs/content/docs/components/autocomplete.mdx +++ b/apps/docs/content/docs/components/autocomplete.mdx @@ -205,6 +205,7 @@ import {useFilter} from "@react-aria/i18n"; @@ -254,6 +255,7 @@ import {useAsyncList} from "@react-stately/data"; typescriptStrict={true} title="Asynchronous Filtering" showPreview={false} + showOpenInCodeSandbox={false} highlightedLines="27-29,33" files={autocompleteContent.asyncFiltering} /> @@ -280,6 +282,7 @@ import {useInfiniteScroll} from "@nextui-org/use-infinite-scroll"; + + ### Custom initials logic @@ -120,7 +121,7 @@ By passing the `isGrid` prop to the `AvatarGroup` component, the avatars will be In case you need to customize the avatar group even further, you can use the `useAvatarGroup` hook and the `AvatarGroupProvider` to create your own implementation. - + ## Slots diff --git a/apps/docs/content/docs/components/button.mdx b/apps/docs/content/docs/components/button.mdx index 69787e0b02..d5c9033593 100644 --- a/apps/docs/content/docs/components/button.mdx +++ b/apps/docs/content/docs/components/button.mdx @@ -88,7 +88,7 @@ You can customize the `Button` component by passing custom Tailwind CSS classes You can also use the `useButton` hook to create your own button component. - + ## Button Group diff --git a/apps/docs/content/docs/components/image.mdx b/apps/docs/content/docs/components/image.mdx index 18d1f3cab8..055c6ead1a 100644 --- a/apps/docs/content/docs/components/image.mdx +++ b/apps/docs/content/docs/components/image.mdx @@ -65,7 +65,7 @@ You can use the `fallbackSrc` prop to display a fallback image when: Next.js provides an optimized [Image](https://nextjs.org/docs/app/api-reference/components/image) component, you can use it with NextUI `Image` component as well. - + > **Note**: NextUI's `Image` component is `client-side`, using hooks like `useState` for loading states > and animations. Use Next.js `Image` alone if these features aren't required. diff --git a/apps/docs/content/docs/components/link.mdx b/apps/docs/content/docs/components/link.mdx index c1453ebfcf..11bbbe47fc 100644 --- a/apps/docs/content/docs/components/link.mdx +++ b/apps/docs/content/docs/components/link.mdx @@ -89,7 +89,7 @@ function App() { In case you need to customize the link even further, you can use the `useLink` hook to create your own implementation. - + {" "}