EN · DE · RU · FR · ES

#2639: AdditionalLabel.jsx

projectforge-webapp/src/components/design/input/AdditionalLabel.jsx Typ: JavaScript/React · Rolle: Komponente · Quelle: projectforge-webapp/src/components/design/input/AdditionalLabel.jsx 21 Zeilen · 17 Code · 0 Kommentare · 4 leer
React-Komponente für AdditionalLabel. Teil des Frontends der ProjectForge-Webanwendung (React + CSS Modules + PropTypes).

Codestruktur

Importe von: ./Input.module.scss, prop-types, react

Hat PropTypes für: AdditionalLabel

Verwendet CSS Modules für das Styling.

Quellcode (gekürzt)

import PropTypes from 'prop-types';
import React from 'react';
import style from './Input.module.scss';

function AdditionalLabel({ title }) {
    if (!title) {
        return null;
    }

    return (
        <div className={style.additionalLabel}>
            <span>{title}</span>
        </div>
    );
}

AdditionalLabel.propTypes = {
    title: PropTypes.string,
};

export default AdditionalLabel;

Git-Verlauf

3685edd6c lift to react 18 wip
253b9f38b update some deps and fix eslint errors
bbd81edc3 es-lint, new js versions.
f6d5e48b4 WIP: new input field structure
8c6ab09ae add additional label to input fields