Skip to contents

Usage

useHref(into = NULL, as = "children", to, render = NULL, ...)

Arguments

into

A component (HTML tag or shiny.react-based element) that will receive the hook value as the specified prop.

as

Character. The name of the component's prop to inject the hook value into. Defaults to "children".

to

Character. The path to resolve.

render

Optional JS function (value) => ReactNode used in place of into/as.

...

Additional props to pass to the component.

Details

Calls the useHref() hook and injects the resolved href string as a prop of the into component.