Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Embed the ARIS widget in a React or Next.js application.
import { useEffect } from 'react'; function ArisWidget({ brokerageId }: { brokerageId: string }) { useEffect(() => { const script = document.createElement('script'); script.src = 'https://aris247.com/widget.js'; script.setAttribute('data-brokerage-id', brokerageId); script.async = true; document.body.appendChild(script); return () => { document.body.removeChild(script); }; }, [brokerageId]); return null; } export default ArisWidget;
import ArisWidget from '@/components/ArisWidget'; export default function RootLayout({ children }) { return ( <html> <body> {children} <ArisWidget brokerageId="YOUR_BROKERAGE_ID" /> </body> </html> ); }
import ArisWidget from '@/components/ArisWidget'; export default function App({ Component, pageProps }) { return ( <> <Component {...pageProps} /> <ArisWidget brokerageId="YOUR_BROKERAGE_ID" /> </> ); }
NEXT_PUBLIC_ARIS_BROKERAGE_ID=550e8400-e29b-41d4-a716-446655440000
<ArisWidget brokerageId={process.env.NEXT_PUBLIC_ARIS_BROKERAGE_ID!} />
export ARIS_API_KEY=aris_yourkey npx @aris/cli init