mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 04:33:47 +08:00
b8754c7d7d
Includes transpiled JS/TS, and Typescript declaration files (typings). [skip ci]
13 lines
476 B
TypeScript
13 lines
476 B
TypeScript
/**
|
|
* The link component enables both internal and external links.
|
|
* It will return a regular HTML link for any links to external sites,
|
|
* and it will use Mithril's m.route.Link for any internal links.
|
|
*
|
|
* Links will default to internal; the 'external' attr must be set to
|
|
* `true` for the link to be external.
|
|
*/
|
|
export default class Link extends Component<import("../Component").ComponentAttrs, undefined> {
|
|
constructor();
|
|
}
|
|
import Component from "../Component";
|