UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

40 lines (36 loc) 1 kB
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ // # List Item Label Component // ## Dependencies // ### React import React from 'react'; import PropTypes from 'prop-types'; // ## Constants import { LIST_ITEM_LABEL } from '../../../utilities/constants'; /** * Component description. */ var ListItemLabel = function ListItemLabel(props) { return React.createElement("span", { className: "slds-truncate" }, props.icon, props.label); }; ListItemLabel.displayName = LIST_ITEM_LABEL; ListItemLabel.propTypes = { data: PropTypes.object, icon: PropTypes.node, index: PropTypes.number, inverted: PropTypes.bool, isSelected: PropTypes.bool, label: PropTypes.string, value: PropTypes.any }; ListItemLabel.defaultProps = { data: {}, index: 0, inverted: false, isSelected: false, label: '', value: null }; export default ListItemLabel; //# sourceMappingURL=item-label.js.map