All Downloads are FREE. Search and download functionalities are using the official Maven repository.

components.widgets.Table.cells.DefaultCell.tsx Maven / Gradle / Ivy

The newest version!
import React from 'react'
import classNames from 'classnames'

interface Props {
    tag?: string
    className?: string
    disabled?: boolean
    forwardedRef?: React.Ref
    children?: React.ReactNode
}

export function DefaultCell({ className, forwardedRef, tag = 'div', disabled = false, ...rest }: Props) {
    const classnames = classNames('default-cell', className, { 'n2o-disabled': disabled })

    return React.createElement(tag, { ...rest, className: classnames, ref: forwardedRef })
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy