I just copied example from official docs:
import { Card } from '@vaadin/react-components/Card.js';
...
<Card theme="outlined elevated">
<div slot="title">Lapland</div>
<div slot="subtitle">The Exotic North</div>
<div>Lapland is the northern-most region of Finland and an active outdoor destination.</div>
</Card>
And it looks as shown in screenshot.
It is absolutely not like this
package.json
"@vaadin/react-components": "24.7.1"
Leif
(Leif Åstrand)
March 29, 2025, 7:57am
2
Card is still a preview feature. Did you remember to enable the feature flag?
Sure, this property was used:
com.vaadin.experimental.cardComponent=true
rofa
(Rolf Smeds)
March 31, 2025, 5:40am
4
I think you might also need to disable the precompile frontend bundle .
(This is something we should mention in the Feature Flag instructions…)
vaadin.frontend.hotdeploy=true
didn’t help
Ok, I better to wait until this component will be ready.
rbrki07
(René Wilby)
March 31, 2025, 1:07pm
6
I just gave it a try using Vaadin 24.7.1, and I think it’s working as described in the docs:
I just enabled the feature flag com.vaadin.experimental.cardComponent=true
and I did not disable the precompile frontend bundle as suggested by Rolf.
marcoc_753
(Marco Collovati)
March 31, 2025, 5:15pm
7
Just to be sure: you set the property in the vaadin-featureflags.properties
file, right? Not in application.properties
or somewhere else?
Exactly! Didn’t notice that there should be another from application.properties file.