Commit 3188524f by Alex Khomenko Committed by GitHub

Grafana-UI: Add docs for FormattedValueDisplay (#27759)

* Add docs for FormattedValueDisplay

* Move to visualizations
parent 244c2875
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} />
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 }} />;
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment