import { ArgsTable, Canvas, Meta, Story } from '@storybook/addon-docs/blocks'
import { text } from '@storybook/addon-knobs'

import { color } from '../../_utils/branding'
import { TYPOGRAPHY } from '../../_utils/taxonomy'
import { TextBrand } from '.'

<Meta title={`${TYPOGRAPHY}/Brand`} />

# **Brand**

<Canvas>
  <Story name="Regular">
    <TextBrand isInverted={false} as="h1">
      {text('children', 'The quick\n brown fox jumps\n over the lazy\n dog')}
    </TextBrand>
  </Story>
</Canvas>

### **isInverted**

<Canvas>
  <Story name="isInverted">
    <h1 style={{ backgroundColor: color.blue }}>
      <TextBrand isInverted>{text('children', 'The quick brown fox jumps over the lazy dog')}</TextBrand>
    </h1>
  </Story>
</Canvas>

## Usage

```jsx
import { TextBrand } from '@blablacar/ui-library/build/typography/brand'

<TextBrand>The quick brown fox jumps over the lazy dog</TextBrand>
```

<ArgsTable of={TextBrand} />
