ClickablePropsinterface
{
disabled?: boolean | undefined;
href?: ImmutableURI | Path | URIString | undefined;
onClick?: ClickableCallback | undefined;
target?: string | undefined;
download?: string | undefined;
title?: string | undefined;
}| Property | Type | |
|---|---|---|
.disabled | boolean | Whether the clickable is currently disabled. |
.href | ImmutableURIPathURIString | If present then render this element as an <a> link (takes precidence over onClick). |
.onClick | ClickableCallback | If present then render this element as a <button> |
.target | string | Target, e.g. _blank |
.download | string | If href is present then this is the suggested filename for downloading. |
.title | string | Title shown on hover. |
Props for a thing that can be clicked — either has a string href link or an onClick callback handler.