Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4a626801
Unverified
Commit
4a626801
authored
Aug 24, 2020
by
Alex Khomenko
Committed by
GitHub
Aug 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grafana-UI: Add story and mdx file (#27152)
parent
f7950491
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
1 deletions
+31
-1
packages/grafana-ui/src/components/AlphaNotice/AlphaNotice.mdx
+10
-0
packages/grafana-ui/src/components/AlphaNotice/AlphaNotice.story.tsx
+20
-0
packages/grafana-ui/src/components/AlphaNotice/AlphaNotice.tsx
+1
-1
No files found.
packages/grafana-ui/src/components/AlphaNotice/AlphaNotice.mdx
0 → 100644
View file @
4a626801
import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks';
import { AlphaNotice } from './AlphaNotice';
<Meta title="MDX|AlphaNotice" component={AlphaNotice} />
# AlphaNotice
Used to indicate plugin state - Alpha, Beta or Deprecated.
<Props of={AlphaNotice}/>
packages/grafana-ui/src/components/AlphaNotice/AlphaNotice.story.tsx
0 → 100644
View file @
4a626801
import
React
from
'react'
;
import
{
PluginState
}
from
'@grafana/data'
;
import
{
AlphaNotice
}
from
'./AlphaNotice'
;
import
{
withCenteredStory
,
withHorizontallyCenteredStory
}
from
'../../utils/storybook/withCenteredStory'
;
import
mdx
from
'./AlphaNotice.mdx'
;
export
default
{
title
:
'Overlays/AlphaNotice'
,
component
:
AlphaNotice
,
decorators
:
[
withCenteredStory
,
withHorizontallyCenteredStory
],
parameters
:
{
docs
:
{
page
:
mdx
,
},
},
};
export
const
basic
=
()
=>
{
return
<
AlphaNotice
state=
{
PluginState
.
alpha
}
text=
"This is an alpha feature"
/>;
};
packages/grafana-ui/src/components/AlphaNotice/AlphaNotice.tsx
View file @
4a626801
...
...
@@ -4,7 +4,7 @@ import { ThemeContext } from '../../index';
import
{
PluginState
}
from
'@grafana/data'
;
import
{
Icon
}
from
'../Icon/Icon'
;
interface
Props
{
export
interface
Props
{
state
?:
PluginState
;
text
?:
string
;
className
?:
string
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment