Buttons' content can no longer be selected + draggability
This commit is contained in:
parent
7c18c4f634
commit
3cf890d70d
|
@ -10,6 +10,7 @@ interface Props {
|
||||||
locale?: string;
|
locale?: string;
|
||||||
target?: "_blank";
|
target?: "_blank";
|
||||||
onClick?: MouseEventHandler<HTMLDivElement>;
|
onClick?: MouseEventHandler<HTMLDivElement>;
|
||||||
|
draggable?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function Button(props: Props): JSX.Element {
|
export default function Button(props: Props): JSX.Element {
|
||||||
|
@ -17,9 +18,10 @@ export default function Button(props: Props): JSX.Element {
|
||||||
|
|
||||||
const button = (
|
const button = (
|
||||||
<div
|
<div
|
||||||
|
draggable={props.draggable}
|
||||||
id={props.id}
|
id={props.id}
|
||||||
onClick={props.onClick}
|
onClick={props.onClick}
|
||||||
className={`grid place-content-center place-items-center border-[1px] border-dark text-dark rounded-full px-4 pt-[0.4rem] pb-[0.5rem] transition-all ${
|
className={`grid place-content-center place-items-center border-[1px] border-dark text-dark rounded-full px-4 pt-[0.4rem] pb-[0.5rem] transition-all select-none ${
|
||||||
props.className
|
props.className
|
||||||
} ${
|
} ${
|
||||||
props.active
|
props.active
|
||||||
|
|
Loading…
Reference in New Issue