chonky
Version:
A File Browser component for React
19 lines (15 loc) • 396 B
text/typescript
export enum FileViewMode {
List = 'list',
Compact = 'compact',
Grid = 'grid',
}
export type FileViewConfigList = {
mode: FileViewMode.List;
entryHeight: number;
};
export type FileViewConfigGrid = {
mode: FileViewMode.Compact | FileViewMode.Grid;
entryWidth: number;
entryHeight: number;
};
export type FileViewConfig = FileViewConfigList | FileViewConfigGrid;