% Auto-generated: do not edit by hand
\name{openAccessButton}

\alias{openAccessButton}

\title{OpenAccessButton component}

\description{
Standardized button for linking to a publication.  This component can be used in four ways: 1. Supply just a `doi` and let the component build the url and fetch the journal name and year from crossref. 2. Supply just a `url` to doi.org and fetch the journal name and year from crossref. 3. Supply a `doi` and a link label in the component's `children`. In this case, there will be no fetch to crossref. 4. Supply a `url` to any location and a link label in the component's `children`. In this case, there will be no fetch to crossref.
}

\usage{
openAccessButton(id=NULL, className=NULL, compact=NULL, doi=NULL,
showTooltip=NULL, target=NULL, url=NULL)
}

\arguments{
\item{id}{Character. The ID used to identify this component in Dash callbacks}

\item{className}{Character. Class name(s) to append to the component's default class (mpc-open-access-button).
Note: the "tag" class is the default value for className.
If you don't want the top-level element to have the "tag" class, add className="" or any other value.
If you want to use a bulma tag modifier, use the tagClassName prop instead.
@default 'tag'}

\item{compact}{Logical. Only display the publication icon and hide the link label and OAB.
Author names will display in a tooltip on hover.}

\item{doi}{Character. The DOI (Digital Object Identifier) of the publication
Will be used to generate a doi.org link and to fetch an open access PDF link.}

\item{showTooltip}{Logical. Show a tooltip on hover with the bibliographic citation for the publication.}

\item{target}{Character. Value to add to the anchor tag's target attribute
@default '_blank'}

\item{url}{Character. Directly supply the URL to the publication.
If a doi.org url is supplied, this component will automatically
parse the url for the doi and use that to fetch an open access link.}
}

\value{named list of JSON elements corresponding to React.js properties and their values}

