Skip to main content

Clickable

Example

import { components } from "replugged";
const { Clickable } = components;

<Clickable onClick={() => console.log("Clicked!")}>{/* Your components here */}</Clickable>;

Props

info

The props of this component extend the attributes of the div element.

NameTypeDefaultDescription
ignoreKeyPressbooleanfalseWhether to ignore a key press on the keyboard
tagstringdivDefine the element type