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
3188524f
Unverified
Commit
3188524f
authored
Sep 28, 2020
by
Alex Khomenko
Committed by
GitHub
Sep 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grafana-UI: Add docs for FormattedValueDisplay (#27759)
* Add docs for FormattedValueDisplay * Move to visualizations
parent
244c2875
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
packages/grafana-ui/src/components/FormattedValueDisplay/FormattedValueDisplay.mdx
+14
-0
packages/grafana-ui/src/components/FormattedValueDisplay/FormattedValueDisplay.story.tsx
+19
-0
No files found.
packages/grafana-ui/src/components/FormattedValueDisplay/FormattedValueDisplay.mdx
0 → 100644
View file @
3188524f
import { Props } from '@storybook/addon-docs/blocks';
import { FormattedValueDisplay } from './FormattedValueDisplay';
# FormattedValueDisplay
Used to display a value, which also supports prefix and suffix.
### Usage
```jsx
<FormattedValueDisplay value={{ text: 'Test value' }} style={{ fontSize: 12 }} />
```
### Props
<Props of={FormattedValueDisplay} />
packages/grafana-ui/src/components/FormattedValueDisplay/FormattedValueDisplay.story.tsx
0 → 100644
View file @
3188524f
import
React
from
'react'
;
import
{
FormattedValueDisplay
}
from
'./FormattedValueDisplay'
;
import
{
withCenteredStory
}
from
'@grafana/ui/src/utils/storybook/withCenteredStory'
;
import
mdx
from
'./FormattedValueDisplay.mdx'
;
export
default
{
title
:
'Visualizations/FormattedValueDisplay'
,
component
:
FormattedValueDisplay
,
decorators
:
[
withCenteredStory
],
parameters
:
{
docs
:
{
page
:
mdx
,
},
},
};
export
const
basic
=
()
=>
{
return
<
FormattedValueDisplay
value=
{
{
text
:
'Test value'
}
}
style=
{
{
fontSize
:
12
}
}
/>;
};
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