Open Westbrook opened 2 years ago
Looks good! could you tlel me more about the table-elements.js export?
Currently to build a table you need to import all of these things:
import '@spectrum-web-components/table/sp-table.js';
import '@spectrum-web-components/table/sp-table-body.js';
import '@spectrum-web-components/table/sp-table-cell.js';
import '@spectrum-web-components/table/sp-table-checkbox-cell.js';
import '@spectrum-web-components/table/sp-table-head.js';
import '@spectrum-web-components/table/sp-table-head-cell.js';
import '@spectrum-web-components/table/sp-table-row.js';
So many imports are easy to mess up. I think we should export a helper file that registers all of those to simplify consumption by client developers.
import '@spectrum-web-components/table/table-elements.js';
Also add the @spectrum-web-components/table
to the index.d.ts
?
Code of conduct
Impacted component(s)
Table
Description of the requested feature
table-elements.js
exportMockups or screenshots
No response
Implementation notes or ideas
No response