UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

35 lines (29 loc) 687 B
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; const displayName = 'PageHeaderInfo'; const propTypes = { /** * Contents of info section */ children: PropTypes.node, /** * Optional class name */ className: PropTypes.string, }; const Info = (props) => ( <p className={classnames( 'slds-text-body_small slds-line-height_reset', props.className )} > {props.children} </p> ); Info.displayName = displayName; Info.propTypes = propTypes; export default Info;