UNPKG

carbon-custom-elements

Version:

A Carbon Design System variant that's as easy to use as native HTML elements, with no framework tax, no framework silo.

74 lines (61 loc) 1.4 kB
/** * @license * * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { Component } from 'react'; interface ComponentProps { /** * `true` if the button should have input focus when the page loads. */ autofocus?: boolean; /** * `true` if the button should be disabled. */ disabled?: boolean; /** * The default file name, used if this button is rendered as `<a>`. */ download?: string; /** * Link `href`. If present, this button is rendered as `<a>`. */ href?: string; /** * The language of what `href` points to, if this button is rendered as `<a>`. */ hreflang?: string; /** * Button kind. */ kind?: string; /** * URLs to ping, if this button is rendered as `<a>`. */ ping?: string; /** * The link type, if this button is rendered as `<a>`. */ rel?: string; /** * Button size. */ size?: string; /** * The link target, if this button is rendered as `<a>`. */ target?: string; /** * The default behavior if the button is rendered as `<button>`. MIME type of the `target`if this button is rendered as `<a>`. */ type?: string; } /** * Button. * @element bx-btn */ declare class BXButton extends Component<ComponentProps> {} export default BXButton;