UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

7 lines (6 loc) 488 B
import { jsx as _jsx } from "react/jsx-runtime"; import { toStyle } from '../Utilities/Helpers/StyleHelper'; import { cn } from '../lib/utils'; import { twMerge } from '../twMerge'; import { Box } from './Flex'; export const StylePreview = (props) => (_jsx(Box, { ...props, className: cn(twMerge('ab-StylePreview twa:p-2 twa:mt-2', props.className), props.styleObject.ClassName), style: { ...toStyle(props.styleObject), ...props.style }, children: props.children ?? 'Preview result' }));