Brand UI

Button

experimentalLa API puede cambiar sin una versión mayor. Desde la versión 0.1.0.

Botón o enlace con forma de botón para landings y páginas de marca; el primario neón se presiona 3 px hacia abajo.

import { Button } from '@pipepath/brand-ui';

Ejemplos

Enlace primario y secundario
Botón deshabilitado
tema oscuro
arcade claro

Props

Props de Button, leídas de sus tipos de TypeScript
PropTipoPor defectoDescripción (en inglés, desde el código)
aria-describedbystring—
aria-labelstring—
children (obligatoria)ReactNode—Visible text from the consumer: an infinitive verb («Descargar Spawn»).
classNamestring—
disabledbooleanfalseNative disabled `<button>`; a link cannot be disabled.
downloadboolean | string—With `href`: download the target instead of opening it.
hrefstring—Renders a link (`<a href>`) styled as a button: use it for navigation and downloads.
idstring—
onClickMouseEventHandler<HTMLElement>—
refRef<HTMLAnchorElement | HTMLButtonElement>—
type'button' | 'submit' | 'reset''button'Native type of the `<button>`; ignored with `href`.
variant'primary' | 'secondary''secondary'Visual weight. `primary` is the pressable neon button of the page's main action.

Cuándo usarlo

Cuándo no usarlo

Teclado