mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 08:35:43 -06:00
Grafana-ui: fix error in basic example and add basic info in TextLink component story (#71660)
This commit is contained in:
parent
a8819dedcf
commit
5f63d1a5cb
@ -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} />
|
@ -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  
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user