banner: add control swap

This commit is contained in:
Elijah Duffy
2025-12-15 17:05:20 -08:00
parent d9cd2b406a
commit 54f7924c4a
2 changed files with 14 additions and 5 deletions

View File

@@ -83,7 +83,8 @@
<Banner
title="Manage Cookies"
controls={{
moreInfo: { label: 'More Info', type: 'link', href: '#!' }
moreInfo: { label: 'More Info', type: 'link', href: '#!' },
swap: true
}}
onaccept={() => console.log('Cookies accepted!')}
ondecline={() => console.log('Cookies declined!')}