How to use the terra-avatar/lib/terra-dev-site/doc/example/common/ColorVariantsWrapper function in terra-avatar

To help you get started, we’ve selected a few terra-avatar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cerner / terra-core / packages / terra-avatar / src / terra-dev-site / doc / example / avatar / AvatarColorVariants.jsx View on Github external
import React from 'react';
import PropTypes from 'prop-types';
import Avatar from 'terra-avatar';
import ColorVariantsWrapper from 'terra-avatar/lib/terra-dev-site/doc/example/common/ColorVariantsWrapper';

const propTypes = { color: PropTypes.string };

const AvatarColorVariants = ({
  ...props
}) => (
  
);

AvatarColorVariants.propTypes = propTypes;
export default ColorVariantsWrapper(AvatarColorVariants);
github cerner / terra-core / packages / terra-avatar / src / terra-dev-site / doc / example / facility / FacilityColorVariants.jsx View on Github external
import React from 'react';
import PropTypes from 'prop-types';
import { Facility } from 'terra-avatar';
import ColorVariantsWrapper from 'terra-avatar/lib/terra-dev-site/doc/example/common/ColorVariantsWrapper';

const propTypes = { color: PropTypes.string };

const FacilityColorVariants = ({
  ...props
}) => (
  
);

FacilityColorVariants.propTypes = propTypes;
export default ColorVariantsWrapper(FacilityColorVariants);
github cerner / terra-core / packages / terra-avatar / src / terra-dev-site / doc / example / shared-user / SharedUserColorVariants.jsx View on Github external
import React from 'react';
import PropTypes from 'prop-types';
import { SharedUser } from 'terra-avatar';
import ColorVariantsWrapper from 'terra-avatar/lib/terra-dev-site/doc/example/common/ColorVariantsWrapper';

const propTypes = { color: PropTypes.string };

const SharedUserColorVariants = ({
  ...props
}) => (
  
);

SharedUserColorVariants.propTypes = propTypes;
export default ColorVariantsWrapper(SharedUserColorVariants);

terra-avatar

Contains components that represent a person, location or entity. Variants include Avatar, Facility, and Generic.

Apache-2.0
Latest version published 7 months ago

Package Health Score

57 / 100
Full package analysis