import { useState } from "react"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@godxjp/ui/data-display"; import { FormField, Rating } from "@godxjp/ui/data-entry"; import { Flex, PageContainer } from "@godxjp/ui/layout"; /** * Rating — star-rating input (radiogroup internally). Controlled via * value/onValueChange. Use readOnly for displaying an average score. * Pass name for native form submission. Composed only from real @godxjp/ui * components. */ export default function Demo() { const [vendorScore, setVendorScore] = useState(0); const [qualityScore, setQualityScore] = useState(4); return ( Controlled input Controlled via value/onValueChange. Keyboard accessible (radiogroup). Pass name= for native form submission. Read-only display readOnly=true turns it into a display widget with no interaction. Use for showing average scores. Custom max stars max= controls the number of stars rendered. Default is 5. ); }