Skip to main content

Hyperlink

Examples#

Basic#

export function App() {    return (        <Window>            <DemoLayout>                <Hyperlink                    text="<https://github.com/>"                    onClick={() => {                        console.log('hyperlink clicked');                    }}                />            </DemoLayout>        </Window>    );}

Usage:

hyperlink basic

In console:

hyperlink clicked

API#

export interface IHyperlinkComponentProps extends IComponentProps {    // the format of text: it should be wrapped in "<>", eg. <https://github.com/>    text: string;    onClick?: Parameters<IHyperlink['OnClick']>[0];}