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

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

The newest version!
import React, { useContext } from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'

import HelpPopover from '../../fields/StandardField/HelpPopover'
import { withFieldsetHeader } from '../withFieldsetHeader'
import DefaultFieldset from '../DefaultFieldset'
import { FactoryContext } from '../../../../../core/factory/context'
import { FactoryLevels } from '../../../../../core/factory/factoryLevels'
import Label from '../../fields/StandardField/Label'

function TitleFieldset({
    render,
    rows,
    label,
    showLine,
    className,
    subTitle,
    help,
    disabled,
    badge,
    description,
    type,
}) {
    const { getComponent } = useContext(FactoryContext)
    const FactoryBadge = getComponent('Badge', FactoryLevels.SNIPPETS)

    return (
        
            
{FactoryBadge && ( {label && {label}} )}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy