/
Ao
/
MaxReport
Обзор
Документация
Войти
/
Ao
/
MaxReport
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
pgsql/pgAdmin 4/web/pgadmin/static/js/components/FieldSet.jsx
40 строк
1 KB
AoAnima
first_commit
13 июл 2026, 17:47
13 июл 2026, 17:47
f1a670a
Код
Авторство
О чём код?
///////////////////////////////////////////////////////////// // // pgAdmin 4 - PostgreSQL Tools // // Copyright (C) 2013 - 2026, The pgAdmin Development Team // This software is released under the PostgreSQL Licence // ////////////////////////////////////////////////////////////// import { styled } from '@mui/material/styles'; import PropTypes from 'prop-types'; import CustomPropTypes from '../custom_prop_types'; const StyledFieldset = styled('fieldset')(({theme}) => ({ padding: theme.spacing(0.5), borderRadius: theme.shape.borderRadius, backgroundColor: 'inherit', border: '1px solid ' + theme.otherVars.borderColor, '& .FieldSet-legend': { width: 'unset', fontSize: 'inherit', fontWeight: 'bold', } })); export default function FieldSet({title='', className, children}) { return ( <StyledFieldset className={className}> <legend className='FieldSet-legend'>{title}</legend> {children} </StyledFieldset> ); } FieldSet.propTypes = { title: PropTypes.string, className: CustomPropTypes.className, children: CustomPropTypes.children, };