Add prop for destructive dropdown menu items
This commit is contained in:
parent
ab702edb4b
commit
db9193531c
1 changed files with 2 additions and 2 deletions
|
|
@ -13,13 +13,13 @@ const defaultProps = {
|
|||
|
||||
export const DropdownMenuItem = React.forwardRef<HTMLDivElement, Props>(
|
||||
function dropdownMenuItem(
|
||||
{ children, ...props }: PropsWithChildren<Props>,
|
||||
{ children, destructive, ...props }: PropsWithChildren<Props>,
|
||||
forwardedRef
|
||||
) {
|
||||
const classes = classNames(props.className, {
|
||||
[styles.menuItem]: true,
|
||||
[styles.language]: props.className?.includes('language'),
|
||||
[styles.destructive]: props.destructive,
|
||||
[styles.destructive]: destructive,
|
||||
})
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue