Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(docs): update dropdown page to use new layout #739

Merged
merged 3 commits into from
Feb 28, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 25 additions & 7 deletions packages/docs/PropTables/DropdownPropTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ const dropdownProps: Prop[] = [
'top-start',
],
defaultValue: 'bottom-start',
description: 'Sets the placement of the Dropdown relative to the anchor.',
description: (
<>
Sets the placement of the <Code primary>Dropdown </Code>relative to the anchor.
MariaJose marked this conversation as resolved.
Show resolved Hide resolved
</>
),
},
{
name: 'positionFixed',
Expand All @@ -62,7 +66,11 @@ const dropdownProps: Prop[] = [
name: 'toggle',
types: 'ReactElement',
required: true,
description: 'Element used as anchor. Toggles the dropdown.',
description: (
<>
Element used as anchor. Toggles the <Code primary>Dropdown</Code>.
</>
),
},
];

Expand All @@ -77,14 +85,18 @@ const dropdownItemProps: Prop[] = [
name: 'content',
types: 'string',
required: true,
description: 'Sets the text content of the DropdownItem.',
description: (
<>
Sets the text content of the <Code>DropdownItem</Code>.
</>
),
},
{
name: 'description',
types: 'string',
description: (
<>
Sets the content description of the <Code>DropdownItem</Code>
Sets the content description of the <Code>DropdownItem</Code>.
</>
),
},
Expand Down Expand Up @@ -137,14 +149,18 @@ const dropdownLinkProps: Prop[] = [
name: 'content',
types: 'string',
required: true,
description: 'Sets the text content of the DropdownLinkItem.',
description: (
<>
Sets the text content of the <Code>DropdownLinkItem</Code>.
</>
),
},
{
name: 'description',
types: 'string',
description: (
<>
Sets the content description of the <Code>DropdownLinkItem</Code>
Sets the content description of the <Code>DropdownLinkItem</Code>.
</>
),
},
Expand Down Expand Up @@ -207,7 +223,9 @@ const dropdownItemGroupProps: Prop[] = [
required: true,
description: (
<>
Accepts an array of <Code>DropdownItems</Code> and <Code>DropdownLinkItems</Code>. See example for usage.
Accepts an array of <Code>DropdownItems</Code> and <Code>DropdownLinkItems</Code>. See{' '}
<NextLink href={{ query: 'implementation=item-groups' }}> example </NextLink>
MariaJose marked this conversation as resolved.
Show resolved Hide resolved
for usage.
</>
),
},
Expand Down
Loading