Skip to content

Commit

Permalink
Merge pull request #142 from wpmudev/select-component-documentation
Browse files Browse the repository at this point in the history
Select Documentation
  • Loading branch information
emgk authored Oct 16, 2023
2 parents 576b33b + 9c3246e commit 6a6cffc
Show file tree
Hide file tree
Showing 21 changed files with 1,269 additions and 516 deletions.
46 changes: 22 additions & 24 deletions packages/components/select/stories/ReactSelect.mdx
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
import { Source } from '@storybook/addon-docs';
import { Page } from '@wpmudev/storybook';
import { Page } from "@wpmudev/storybook"
import { Unstyled } from "@storybook/blocks"

import TabUsage from './tabs/TabUsage.mdx';
import TabCode from './tabs/TabCode.mdx';
import TabExamples from './tabs/TabExamples.mdx';
import TabUsage from "./tabs/TabUsage.mdx"
import TabCode from "./tabs/TabCode.mdx"
import TabExamples from "./tabs/TabExamples.mdx"

<Page.Tabs
title="Select"
subtitle={
<>
The Select element is use to create a drop-down list. This element is most often used in a form, to collect user input. Select inputs let users select a predefined value from a list of options
</>
}
status="draft"
>
<div id="usage" label="Usage">
<TabUsage />
</div>
<div id="code" label="Code">
<TabCode />
</div>
<div id="examples" label="Examples">
<TabExamples />
</div>
</Page.Tabs>
<Unstyled>
<Page.Tabs
title="Select"
subtitle="The Select element is used for a drop-down options. This element is most often used in a form, to collect user input. Select inputs let users select a predefined value from a list of options"
status="draft"
>
<div id="usage" label="Usage">
<TabUsage />
</div>
<div id="code" label="Code">
<TabCode />
</div>
<div id="examples" label="Examples">
<TabExamples />
</div>
</Page.Tabs>
</Unstyled>
Binary file not shown.
Binary file not shown.
Binary file not shown.
70 changes: 70 additions & 0 deletions packages/components/select/stories/images/expanded-anatomy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions packages/components/select/stories/images/expanded-states.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 109 additions & 0 deletions packages/components/select/stories/images/multiselect-anatomy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
130 changes: 130 additions & 0 deletions packages/components/select/stories/images/multiselect-states.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions packages/components/select/stories/images/single-anatomy.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 6a6cffc

Please sign in to comment.