`import { FilterBuilder } from "@svar-ui/react-filter";
import "@svar-ui/react-filter/all.css";
const fields = [
{ id: "first_name", label: "First Name", type: "text" },
{ id: "age", label: "Age", type: "number" },
{ id: "start", label: "Start Date", type: "date", format: "%y-%m-%d" }
];
const options = {
first_name: [ "Alex", "Adam", "John", "Jane" ],
age: [ 17, 21, 35, 42 ],
start: [ new Date(2025, 4, 7), new Date(2025, 4, 10) ]
};
export default function App() {
return <FilterBuilder fields={fields} options={options} />;
}`
Why am I not able to use this? I am getting TypeScript errors, also CSS files do not exist.
I'm using vite with latest versions