Update index.stories.mdx
This commit is contained in:
1 parent
2005a9f1bb
commit
174b6246c7
1 file changed
+3
-3
@@ -11,7 +11,7 @@ Displays helpful messages related to a form field. This component is used
|
||||
by form fields and should not be used directly.
|
||||
|
||||
```html
|
||||
<Rose::Form::HelperText @id="helper-text-{{field.id}}" @link='text link' @linkTxt='text goes here'>
|
||||
<Rose::Form::HelperText @id="helper-text-{{field.id}}" @link='text link' @linkText='text goes here'>
|
||||
Helper text
|
||||
</Rose::Form::HelperText>
|
||||
```
|
||||
@@ -19,14 +19,14 @@ by form fields and should not be used directly.
|
||||
<Preview>
|
||||
<Story name="HelperText">{{
|
||||
template: hbs`
|
||||
<Rose::Form::HelperText @error={{this.error}} @link={{this.link}} @linkTxt={{this.linkTxt}}>
|
||||
<Rose::Form::HelperText @error={{this.error}} @link={{this.link}} @linkText={{this.linkTxt}}>
|
||||
Helper text
|
||||
</Rose::Form::HelperText>
|
||||
`,
|
||||
context: {
|
||||
error: boolean('error', false),
|
||||
link: text('link', 'http://www.example.net/'),
|
||||
linkTxt: text('linkTxt', 'link text')
|
||||
linkText: text('linkText', 'link text')
|
||||
},
|
||||
}}</Story>
|
||||
</Preview>
|
||||
Reference in new issue
Block a user