Skip to content

Commit

Permalink
fix(docs): added missing package manager tabs in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
awesome-pro committed Aug 10, 2024
1 parent a4e5024 commit 5e7bc89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 34 deletions.
9 changes: 8 additions & 1 deletion apps/docs/content/docs/guide/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ You will be prompted to configure your project:
```

Install the dependencies to start the local server:

<PackageManagers
commands={{
npm: "cd my-nextui-app && npm install",
yarn: "cd my-nextui-app && yarn install",
pnpm: "cd my-nextui-app && pnpm install",
bun: "cd my-nextui-app && bun install",
}}
/>

Start the local server:
<PackageManagers
Expand Down
33 changes: 0 additions & 33 deletions packages/components/dropdown/stories/dropdown.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -739,36 +739,3 @@ export const DisableAnimation = {
disableAnimation: true,
},
};

export const TestTemplate = () => {
const [selectedKeys, setSelectedKeys] = React.useState(new Set(["text"]));

const selectedValue = React.useMemo(
() => Array.from(selectedKeys).join(", ").replaceAll("_", " "),
[selectedKeys],
);

return (
<Dropdown>
<DropdownTrigger>
<Button className="capitalize" variant="bordered">
{selectedValue}
</Button>
</DropdownTrigger>
<DropdownMenu
disallowEmptySelection
aria-label="Single selection example"
selectedKeys={selectedKeys}
selectionMode="single"
variant="flat"
onSelectionChange={setSelectedKeys}
>
<DropdownItem key="text">Text</DropdownItem>
<DropdownItem key="number">Number</DropdownItem>
<DropdownItem key="date">Date</DropdownItem>
<DropdownItem key="single_date">Single Date</DropdownItem>
<DropdownItem key="iteration">Iteration</DropdownItem>
</DropdownMenu>
</Dropdown>
);
};

0 comments on commit 5e7bc89

Please sign in to comment.