The new table component that we launched in June of 2023 was built to natively support data export in a variety of formats. It will still generate a .csv file by default, but this behavior can be customized via the component's inspector.
Everything else that @victoria mentioned is still relevant, but I thought I'd jump in and clarify that it's no longer necessary to create a separate button!
