Skip to content

Commit

Permalink
feat(DropdownMenu): add custom variant support (#5807)
Browse files Browse the repository at this point in the history
  • Loading branch information
ubheamar committed May 12, 2021
1 parent 91470c2 commit 8c7857a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DropdownMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from './helpers';
import { AlignType, AlignDirection, alignPropType } from './types';

export type DropdownMenuVariant = 'dark';
export type DropdownMenuVariant = 'dark' | string;

export interface DropdownMenuProps
extends BsPrefixProps,
Expand Down Expand Up @@ -90,7 +90,7 @@ const propTypes = {
*
* Omitting this will use the default light color.
*/
variant: PropTypes.oneOf<DropdownMenuVariant>(['dark']),
variant: PropTypes.string,
};

const defaultProps: Partial<DropdownMenuProps> = {
Expand Down

0 comments on commit 8c7857a

Please sign in to comment.