Files
lucide/docs/guide/preact/advanced/examples/filled-icon-example/App.js

25 lines
603 B
JavaScript
Raw Normal View History

2025-11-19 23:24:08 +01:00
import { Star, StarHalf } from "lucide-preact";
import { h } from "preact";
2025-11-04 17:35:43 +01:00
import "./icon.css";
function App() {
return (
<div className="app">
<div className="star-rating">
<div className="stars">
{ Array.from({ length: 5 }, () => (
<Star fill="#111" strokeWidth={0} />
))}
</div>
<div className="stars rating">
<Star fill="yellow" strokeWidth={0} />
<Star fill="yellow" strokeWidth={0} />
<StarHalf fill="yellow" strokeWidth={0} />
</div>
</div>
</div>
);
}
export default App;