import { A } from "@components/html";
import { ComponentInfo, Link, Preview, Tagline } from "@stories/components";
import { Meta, Story } from "@storybook/addon-docs";

<Meta
    title="Html elements/A"
    id="html-anchor"
/>

# Anchor

<Tagline>A specialized <Link href="?path=/docs/box--default-story">box</Link> component for HTML anchor element.</Tagline>

<ComponentInfo
    usage={"import { A } from \"@sharegate/orbit-ui\";"}
    githubPath="/packages/components/src/html/src"
/>

## Usage

An anchor component accepts all the [anchor HTML element attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a) and [Orbit styled component props](?path=/docs/styling--page).

<Preview>
    <Story name="example">
        <A href="https://www.cc.com/shows/futurama" color="alias-tertiary">Futurama</A>
    </Story>
</Preview>
