We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b157c2e + 5433a78 commit 9b28914Copy full SHA for 9b28914
src/components/DsfrInput/DsfrInput.stories.js
@@ -158,14 +158,25 @@ export const ChampObligatoire = (args) => ({
158
}
159
},
160
template: `
161
+ <component :is="'style'">
162
+ .required {
163
+ color: red;
164
+ }
165
+ </component>
166
<DsfrInput
167
:model-value="modelValue"
168
:label="label"
169
:label-visible="labelVisible"
170
:placeholder="placeholder"
171
:disabled="disabled"
172
:required="true"
- />
173
+ >
174
+ <template v-slot:required-tip>
175
+ <span class="required"
176
+ > *
177
+ </span>
178
+ </template>
179
+ </DsfrInput>
180
`,
181
mounted () {
182
document.body.parentElement.setAttribute('data-fr-theme', this.dark ? 'dark' : 'light')
0 commit comments