A reusable multi-line text input component for Salesforce Lightning with validation and accessibility support.
// Source: https://github.com/salesforce/base-components-recipes | License: MIT | Copyright 2018, Salesforce.com, Inc
// Provided via justclaw.it.com; keep this notice with the code.
/*
* Copyright (c) 2019, salesforce.com, inc.
* All rights reserved.
* SPDX-License-Identifier: MIT
* For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/MIT
*/
import labelRequired from '@salesforce/label/c.lightning_LightningControl_required';
import { LightningElement, api, track } from 'lwc';
import { classSet } from 'c/utils';
import {
normalizeBoolean,
synchronizeAttrs,
getRealDOMId,
classListMutation,
decorateInputForDragon,
setDecoratedDragonInputValueWithoutEvent
} from 'c/utilsPrivate';
import {
InteractingState,
normal
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key