@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
6 lines (5 loc) • 385 B
JavaScript
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
import SimpleButton from './SimpleButton';
export const SelectList = (props) => {
return (_jsx(_Fragment, { children: props.options.map((option) => (_jsx(SimpleButton, { className: "twa:p-2 twa:w-full", variant: "text", onClick: () => props.onChange(option), children: option.label }, option.label))) }));
};