mirror of https://github.com/status-im/consul.git
ui: Move <Ref /> docs to README.mdx (#7459)
README.mdx file are auto displayed in GH. Also added note on it being renderless, which is useful to know from a CSS standpoint
This commit is contained in:
parent
5e98ef3f51
commit
64b07dcafe
|
@ -8,7 +8,7 @@
|
||||||
| `name` | `String` | | The property name |
|
| `name` | `String` | | The property name |
|
||||||
| `value` | `Object` | | The value |
|
| `value` | `Object` | | The value |
|
||||||
|
|
||||||
`<Ref />` allows component users use an author defined public API of a component.
|
`<Ref />` allows component users use an author defined public API of a component. The component is renderless in that it yields nothing to the DOM.
|
||||||
|
|
||||||
The component takes a property name and value and sets it on the specified target, similar to the `{{ref this "name"}}` modifier.
|
The component takes a property name and value and sets it on the specified target, similar to the `{{ref this "name"}}` modifier.
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ Here we provide a public API for a form component whilst authoring.
|
||||||
```handlebars
|
```handlebars
|
||||||
{{! /components/form/index.hbs }}
|
{{! /components/form/index.hbs }}
|
||||||
<form onsubmit={{action "submit"}}>
|
<form onsubmit={{action "submit"}}>
|
||||||
{{ yield (hash
|
{{yield (hash
|
||||||
focus=(action "focus")
|
focus=(action "focus")
|
||||||
submit=(action "submit")
|
submit=(action "submit")
|
||||||
cancel=(action "cancel")
|
cancel=(action "cancel")
|
Loading…
Reference in New Issue