Skip to content

Commit f29681e

Browse files
fix(@clayui/drop-down): fixes the values of the width property of the Menu
Adds a more detailed description about the API and removes the `auto` value that doesn't exist for `width` and adds the `full` that was missing.
1 parent 94d2142 commit f29681e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/clay-drop-down/src/Menu.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,13 @@ interface IProps extends React.HTMLAttributes<HTMLDivElement> {
166166
onSetActive: (val: boolean) => void;
167167

168168
/**
169-
* `dropdown-menu-width-${width}`
169+
* The modifier class `dropdown-menu-width-${width}` makes the menu expand
170+
* the full width of the page.
171+
*
172+
* - sm makes the menu 500px wide.
173+
* - full makes the menu 100% wide.
170174
*/
171-
width?: 'sm' | 'auto';
175+
width?: 'sm' | 'full';
172176
}
173177

174178
const useIsomorphicLayoutEffect =

0 commit comments

Comments
 (0)