feat: 🎸 add support for href

This commit is contained in:
dharini committed 2022-01-03 15:32:36 -08:00
1 parent 83c2e84647
commit 52570b48fb
2 files changed
+6 -3

No files matched your search

@@ -4,4 +4,5 @@
...attributes
>
{{yield}}
<a href={{@link}} target='_blank' rel='noreferrer noopener'>{{@linkTxt}}</a>
</span>
@@ -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}}">
<Rose::Form::HelperText @id="helper-text-{{field.id}}" @link='dewdw'>
Helper text
</Rose::Form::HelperText>
```
@@ -19,12 +19,14 @@ by form fields and should not be used directly.
<Preview>
<Story name="HelperText">{{
template: hbs`
<Rose::Form::HelperText @error={{this.error}}>
<Rose::Form::HelperText @error={{this.error}} @link={{this.link}} @linkTxt={{this.linkTxt}}>
Helper text
</Rose::Form::HelperText>
`,
context: {
error: boolean('error', false)
error: boolean('error', false),
link: text('link', 'http://www.example.net/'),
linkTxt: text('linkTxt', 'link text')
},
}}</Story>
</Preview>