Grafana-ui: fix error in basic example and add basic info in TextLink component story (#71660)

This commit is contained in:
Laura Fernández 2023-07-17 08:47:36 +02:00 committed by GitHub
parent a8819dedcf
commit 5f63d1a5cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -0,0 +1,10 @@
import { Meta, Preview, ArgTypes } from '@storybook/blocks';
import { TextLink } from './TextLink';
<Meta title="MDX|TextLink" component={TextLink} />
# TextLink
The TextLink component renders an anchor tag `<a>` that takes users to another page, external or internal to Grafana.
<ArgTypes of={TextLink} />

View File

@ -46,14 +46,14 @@ export const Example: StoryFn = (args) => {
<StoryExample name="This is a 'inline + external' link with the default behaviour">
<P>
To get started with a forever free Grafana Cloud account, sign up at &#160;
<TextLink href="https://grafana.com/" external {...args}>
<TextLink href="https://grafana.com/" {...args} inline>
grafana.com
</TextLink>
.
</P>
</StoryExample>
<StoryExample name="This is a 'standalone + external' link with the default behaviour">
<TextLink href="https://grafana.com/docs/grafana/latest/" inline={false} external {...args}>
<TextLink href="https://grafana.com/docs/grafana/latest/" {...args}>
Learn how in the docs
</TextLink>
</StoryExample>