@danilandreev/material-docs
Version:
material-docs - react framework for easy creating documentation site in material design style.
34 lines (30 loc) • 778 B
TypeScript
/*
* Author: Andrieiev Danil | danssg08@gmail.com | https://github.com/DanilAndreev
* Copyright (C) 2020.
*/
import Containerable from "../../interfaces/Containerable";
import Stylable from "../../interfaces/Stylable";
export interface LinkProps
extends Containerable, Stylable {
/**
* page - page route. Can be passed as string or as array of routes.
* @type string | string[]
*/
page: string | string[];
/**
* href - link to external resource.
* @type string
*/
href: string;
}
/**
* Link - React component, designed to make links.
* @param props
* @function
* @constructor
* @example
* <Link page={["apis", "docs"]}>
* I am a link
* </Link>
*/
export default function Link(props: LinkProps): JSX.Element;