AI product
Approval card
consent before consequence · says what changes and whether it can be undone
function ApprovalDemo() { const [run, setRun] = React.useState(0); return ( <View className="w-full gap-3"> <ApprovalCard key={run} title="Refund £48.00 to Alex Morgan" description="The money goes back to their card in 3–5 days. This can’t be undone." details={[ { label: 'Order', value: '#4821' }, { label: 'Reason', value: 'Arrived damaged' }, ]} onApprove={() => {}} onDeny={() => {}} /> <Button size="sm" variant="ghost" className="self-start" onPress={() => setRun((r) => r + 1)}> <Text>Reset</Text> </Button> </View> );}Usage
Ask before anything irreversible or costly. The title is the action as a sentence the person can say yes to.
API
<ApprovalCard title description? details? onApprove onDeny />Get it
Already in every copy of the native kit:
import { ApprovalCard } from '@/components/kit/approval-card';Details
- Exports
ApprovalCard- Packages
- lucide-react-native@^1.21.0
- Installs with
- @halftone-native/button, @halftone-native/icon, @halftone-native/lib-haptics, @halftone-native/lib-utils, @halftone-native/summary-card, @halftone-native/text
- Also searched as
- confirm, human in the loop, permission
- Registry JSON
- /r/native/approval-card.json
<ApprovalCard className="max-w-xl" title="Send 3 reminder emails" description="Emails go out now from billing@northwind.co. You can’t unsend them." details={[ { label: 'To', value: 'Lumen Labs, Acme Studio, Fernway' }, { label: 'Total due', value: '£4,410' }, ]} onApprove={() => toast.success('Reminders sent')} onDeny={() => toast('Nothing was sent')}/>Usage
Ask before anything irreversible or costly. The title is the action as a sentence the person can say yes to.
API
<ApprovalCard title description? details? onApprove onDeny />Get it
Already in every copy of the web kit:
import { ApprovalCard } from '@/components/kit/approval-card';Details
- Exports
ApprovalCard- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Installs with
- @halftone-web/button
- Also searched as
- confirm, human in the loop, permission
- Registry JSON
- /r/web/approval-card.json
Agents: the whole registry is at /llms.txt.