import { Meta, Story, ArgsTable, Canvas } from '@storybook/addon-docs/blocks';
import LinkSection from '../LinkSection';
import { getKnobs } from '../../../tools/knobsHelper';
import { TableContentFromObject, FormOutput, CollapsibleJsonSnippet } from '../../../tools/docTools';

export const linkSectionSettings = {
    alignment: 'The alignment of the LinkCards text.',
    tileColor: 'The background color of the LinkCards text section.',
    imageColor: 'The color of the dividers between the table rows and columns.',
    cornerRadius: 'The corner radius of the LinkCards.'
};

<Meta title="Components/Link Section" component={LinkSection} />


# LinkSection
<br />

## `LinkSections` is used to present and link to available card options (user, payment, productTile) in the FAQ
<br />

### Default
<Canvas>
    <Story name="Default">
        <LinkSection settings={getKnobs(LinkSection.schema().form)} />
    </Story>
</Canvas>


## Usage Example
<CollapsibleJsonSnippet
    summary="linkSectionSettingsData"
    code={getKnobs(LinkSection.schema().form)}
/>

```jsx
import LinkSection from '@appdirect/sfb-theme-components/src/components/faq-link-section/LinkSection';

<LinkSection settings={linkSectionSettingsData} />
```
## Props

<ArgsTable of={LinkSection} />

## Schema

### Form Settings
<table>
    <TableContentFromObject obj={linkSectionSettings} />
</table>

### Form Output
<FormOutput code={LinkSection.schema().form} />
