Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { Button } from '@/components/ui/button'import { Card, CardContent, CardFooter } from '@/components/ui/card'import { Input } from '@/components/ui/input'import { Label } from '@/components/ui/label'import { CustomPricingContext, useCustomPricing, useCustomPricingQuantity, useCustomPricingStore,} from '@/components/systaliko-ui/utils/custom-pricing-utils'export default function CustomPricingDemo() { const store = useCustomPricingStore() return ( <CustomPricingContext.Provider value={store}> <Card className='w-full max-w-sm'> <CardContent className='grid gap-4'> <Seats /> <Total /> </CardContent> <CardFooter> <Button className='w-full'>Continue</Button> </CardFooter> </Card> </CustomPricingContext.Provider> )}function Seats() { const { quantity, updateQuantity } = useCustomPricingQuantity({ id: 'seats', unitPrice: 12, defaultValue: 1, }) return ( <div className='grid gap-2'> <Label htmlFor='seats'>Seats ($12 each)</Label> <Input id='seats' type='number' min={1} value={quantity} onChange={(e) => updateQuantity('seats', Number(e.target.value))} /> </div> )}function Total() { const { total } = useCustomPricing() return ( <div className='flex items-center justify-between text-sm'> <span className='text-muted-foreground'>Total</span> <span className='font-semibold'>${total}/mo</span> </div> )}