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

components.widgets.Form.fieldsets.withFieldsetHeader.jsx Maven / Gradle / Ivy

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

import { useResolved } from '../../../../core/Expression/useResolver'

import { FieldsetHeader } from './FieldsetHeader'

export function withFieldsetHeader(Component) {
    function WithFieldsetHeaderComponent({
        className,
        style,
        needLabel,
        needDescription,
        description,
        label,
        help,
        type,
        childrenLabel,
        enabled,
        activeModel,
        render,
        visible,
        badge: badgeProps,
        ...rest
    }) {
        const badge = useResolved(badgeProps, activeModel)

        return (
            
) } return WithFieldsetHeaderComponent }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy