Skip to content

Commit

Permalink
update docs with listbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Chance Strickland committed Mar 6, 2020
1 parent 22c04ad commit d08ff79
Show file tree
Hide file tree
Showing 4 changed files with 699 additions and 112 deletions.
2 changes: 2 additions & 0 deletions website/src/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import "@reach/combobox/styles.css";
import "@reach/slider/styles.css";
import "@reach/checkbox/styles.css";
import "@reach/accordion/styles.css";
import "@reach/listbox/styles.css";
import "../styles/app.scss";

const NavLink = forwardRef(function NavLink({ children, ...props }, ref) {
Expand Down Expand Up @@ -225,6 +226,7 @@ function Nav({ media }) {
<NavLink to="/combobox">Combobox</NavLink>
<NavLink to="/dialog">Dialog (Modal)</NavLink>
<NavLink to="/disclosure">Disclosure</NavLink>
<NavLink to="/listbox">Listbox</NavLink>
<NavLink to="/menu-button">Menu Button</NavLink>
<NavLink to="/portal">Portal</NavLink>
<NavLink to="/skip-nav">Skip Nav</NavLink>
Expand Down
38 changes: 29 additions & 9 deletions website/src/components/mdx-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,48 @@ import {
Accordion,
AccordionButton,
AccordionItem,
AccordionPanel
AccordionPanel,
} from "@reach/accordion";
import Alert from "@reach/alert";
import {
AlertDialog,
AlertDialogLabel,
AlertDialogDescription,
AlertDialogOverlay,
AlertDialogContent
AlertDialogContent,
} from "@reach/alert-dialog";
import {
Disclosure,
DisclosureButton,
DisclosurePanel
DisclosurePanel,
} from "@reach/disclosure";
import { useId } from "@reach/auto-id";
import {
CustomCheckbox,
CustomCheckboxContainer,
CustomCheckboxInput,
MixedCheckbox,
useMixedCheckbox
useMixedCheckbox,
} from "@reach/checkbox";
import {
Combobox,
ComboboxInput,
ComboboxPopover,
ComboboxList,
ComboboxOption,
ComboboxOptionText
ComboboxOptionText,
} from "@reach/combobox";
import {
Listbox,
ListboxInput,
ListboxButton,
ListboxArrow,
ListboxPopover,
ListboxList,
ListboxOption,
ListboxGroup,
ListboxGroupLabel,
} from "@reach/listbox";
import Component from "@reach/component-component";
import { Dialog, DialogOverlay, DialogContent } from "@reach/dialog";
import {
Expand All @@ -44,7 +55,7 @@ import {
MenuItem,
MenuItems,
MenuPopover,
MenuLink
MenuLink,
} from "@reach/menu-button";
import Portal from "@reach/portal";
import Rect, { useRect } from "@reach/rect";
Expand All @@ -54,7 +65,7 @@ import {
SliderTrack,
SliderTrackHighlight,
SliderHandle,
SliderMarker
SliderMarker,
} from "@reach/slider";
import { Tabs, TabList, Tab, TabPanels, TabPanel } from "@reach/tabs";
import Tooltip, { useTooltip, TooltipPopup } from "@reach/tooltip";
Expand Down Expand Up @@ -137,6 +148,15 @@ function MyPageLayout({ children }) {
DisclosureButton,
DisclosurePanel,
GatsbyLink,
Listbox,
ListboxInput,
ListboxButton,
ListboxArrow,
ListboxPopover,
ListboxList,
ListboxOption,
ListboxGroup,
ListboxGroupLabel,
matchSorter,
Menu,
MenuButton,
Expand Down Expand Up @@ -170,12 +190,12 @@ function MyPageLayout({ children }) {
useTransition,
useWindowSize,
VisuallyHidden,
WindowSize
WindowSize,
}}
/>
);
},
table: Table
table: Table,
}}
>
<main>
Expand Down
Loading

0 comments on commit d08ff79

Please sign in to comment.