-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(menu-separator): add className prop to MenuSeparator (#2949)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Trevor <7311041+tjuanitas@users.noreply.github.com>
- Loading branch information
1 parent
722296d
commit b9503b8
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames'; | ||
|
||
const MenuSeparator = () => <li role="separator" />; | ||
export interface MenuSeparatorProps { | ||
className?: string; | ||
} | ||
|
||
const MenuSeparator = ({ className }: MenuSeparatorProps) => ( | ||
<li className={classNames('bdl-MenuSeparator', className)} role="separator" /> | ||
); | ||
|
||
export default MenuSeparator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters