Clickablecomponent

Clickable(props: StylableClickableProps): ReactElement
ParamType
propsStylableClickableProps
Props for a clickable that also accepts a className for styling. required
    .classNamestring
Return
ReactElement

Render either a <button>, an <a href="">, or a plain <span> based on whether an onClick or href prop is provided.

Examples

<Clickable href="/about">About</Clickable>
<Clickable onClick={save}>Save</Clickable>