/*! Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. */
import * as React from 'react';
import Screener, { Steps } from 'screener-storybook/src/screener';
import { storiesOf } from '@storybook/react';
import { FabricDecorator } from '../utilities';
import { Customizer, Link, ILinkStyleProps, ThemeProvider } from '@fluentui/react-next';
const customStyles = { root: { background: 'lightblue' } };
const themedStyles = (props: ILinkStyleProps) => ({
root: {
background: props.theme.palette.greenLight,
},
});
const scopedSettings = { Link: { styles: customStyles } };
storiesOf('Link Next', module)
.addDecorator(FabricDecorator)
.addDecorator(story => (
{story()}
))
.addStory(
'Root',
() => (
I'm a link
),
{ rtl: true },
)
.addStory('Disabled', () => (
I'm a disabled link
))
.addStory('No Href', () => (
I'm rendered as a button because I have no href
))
.addStory('No Href Disabled', () => (
I'm rendered as a button because I have no href and am disabled
))
.addStory('Link styled via styles prop', () => (
Link styled via styles prop
))
.addStory('Link styled via styles prop with theme value', () => (
Link styled via styles prop with theme value
))
.addStory("Link styled via Customizer's scoped settings", () => (
Link styled via Customizer's scoped settings
));