diff --git a/packages/grafana-ui/src/components/LoadingPlaceholder/LoadingPlaceholder.story.tsx b/packages/grafana-ui/src/components/LoadingPlaceholder/LoadingPlaceholder.story.tsx index 07e50480a99..ed6b036653f 100644 --- a/packages/grafana-ui/src/components/LoadingPlaceholder/LoadingPlaceholder.story.tsx +++ b/packages/grafana-ui/src/components/LoadingPlaceholder/LoadingPlaceholder.story.tsx @@ -3,7 +3,7 @@ import React from 'react'; import { withCenteredStory } from '../../utils/storybook/withCenteredStory'; -import { LoadingPlaceholder } from './LoadingPlaceholder'; +import { LoadingPlaceholder, LoadingPlaceholderProps } from './LoadingPlaceholder'; import mdx from './LoadingPlaceholder.mdx'; const meta: ComponentMeta = { @@ -15,10 +15,19 @@ const meta: ComponentMeta = { page: mdx, }, }, + argTypes: { + text: { + control: { type: 'text' }, + }, + }, }; -export const basic: ComponentStory = () => { - return ; +export const Basic: ComponentStory = (args: LoadingPlaceholderProps) => { + return ; +}; + +Basic.args = { + text: 'Loading...', }; export default meta;