We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Now , I added markdown for supporting table and I want to add icon export to excel How to code?
The text was updated successfully, but these errors were encountered:
Hi @angpao , did you find a solution?
Sorry, something went wrong.
To add an action, you can add it in the artifacts/text/client.tsx file
artifacts/text/client.tsx
For example:
actions: [ { icon: <FileDown size={18} />, description: 'Download', onClick: ({ content }) => { const blob = new Blob([content], { type: 'text/plain' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = 'document.txt'; a.click(); URL.revokeObjectURL(url); toast.success('Document downloaded!'); }, },
No branches or pull requests
Now , I added markdown for supporting table and I want to add icon export to excel How to code?
The text was updated successfully, but these errors were encountered: