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

<Meta
    title="Html elements/Div"
    id="html-div"
/>

# Div

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

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

## Usage

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

<Preview>
    <Story name="example">
        <Div color="alias-tertiary">Apple co-founder Steve Wozniak tweeted on Sunday about a "private space company" he's launching that's "unlike the others." Called Privateer Space, its mission is to "keep space safe and accessible to all humankind".</Div>
    </Story>
</Preview>
