UNPKG

@poserjs/react-table-csv

Version:

React component for exploring CSV data with filers, grouping, sorting, and CSV export/import.

8 lines (5 loc) 225 B
export const THEMES = ['lite', 'dark', 'solarized', 'dracula', 'monokai', 'gruvbox']; export const cycleTheme = (currentTheme) => { const idx = THEMES.indexOf(currentTheme); return THEMES[(idx + 1) % THEMES.length]; };