Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
fix(radio): Update component markup - TWIG-36 (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
papegaill authored and planctus committed Sep 18, 2019
1 parent 6b52750 commit ae75a07
Show file tree
Hide file tree
Showing 8 changed files with 162 additions and 149 deletions.
7 changes: 4 additions & 3 deletions src/ec/packages/ec-component-radio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ npm install --save @ecl-twig/ec-component-radio

### Parameters:

- "label_id" (string) (default: '')
- "items" (array) (default: [])
- "id" (string) (default: '')
- "name" (string) (default: '')
Expand All @@ -22,26 +21,28 @@ npm install --save @ecl-twig/ec-component-radio
- "label" (block) (default: '')
- "name" (string) (default: '')
- "helper_id" (string) (default: '')
- "hide_label" (boolean) (default: false)
- "invalid" (boolean) (default: false)
- "binary" (boolean) (default: false)
- "required" (boolean) (default: false)
- "extra_classes" (optional) (string) (default: '')
- "extra_attributes" (optional) (array) (default: [])
- "name" (string) Attribute name, eg. 'data-test'
- "value" (string) Attribute value, eg: 'data-test-1'

### Blocks:

- "label"
- "helper_text"
- "invalid_text"
- "label"
- "optional_text"
- "required_text"

### Example:

<!-- prettier-ignore -->
```twig
{% include 'path/to/radio-group.html.twig' with {
label_id: 'radio-default-label',
label: 'Select your country',
helper_id: 'radio-default-helper',
helper_text: 'Helper text for the group',
Expand Down
Loading

0 comments on commit ae75a07

Please sign in to comment.