@yext/react-components
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

react-components


A library of React Components for rendering data of complex types in the Yext platform. See @yext/types for type declarations.

Directory

Currently providing the following react components, with plans for more to come in 1.0.0 release.

Component Type Demo
Image Image Storybook
Address Address Storybook
Hours Hours Storybook
HoursTable Hours Storybook
Map Coordinate Storybook

Getting Started

npm install @yext/react-components

Once the library is installed, our React Components should be available throughout your application.

import {
  Address as AddressType,
  Hours as HoursType,
  Image as ImageType,
  Coordinate,
} from "@yext/types";
import { Address, Hours, Image, Map } from "@yext/react-components";

interface LocationProps = {
  address: AddressType;
  hours: HoursType;
  c_storefront: ImageType;
  locationCoordinate: Coordinate;
}

const Location = (props: LocationProps) => {
  return (
    <>
      <Address address={props.address} />
      <Hours hours={props.hours} />
      <Image image={props.c_storefront} />
      <Map markerLocations={[props.locationCoordinate]} />
    </>
  );
}

export default Location;

Readme

Keywords

none

Package Sidebar

Install

npm i @yext/react-components

Weekly Downloads

1,479

Version

0.0.6

License

none

Unpacked Size

299 kB

Total Files

266

Last publish

Collaborators

  • johnnguyen
  • mdjannesar
  • tsayyapureddi
  • yext-bot
  • souravkumar
  • anguyenyext
  • gargsi
  • manash-rauta
  • rsalunke
  • saivythik
  • scheerla
  • a_ashwik
  • slapshot-bot
  • ataing
  • ttanushree
  • abhishekbajpai
  • tpotla
  • nbramblett
  • emilyzhang777
  • sscott24
  • dsurducan
  • afriedman00
  • lilwang
  • dgurland
  • htamirepi
  • ajgist
  • emilyfranklin
  • bryanreed
  • dlsgusrn7577
  • paigep
  • petya182
  • zhengzhi
  • jballschneider
  • jknutsonn
  • jamesyang14
  • jfromm
  • tobyko
  • lymarrie
  • mkilpatrick
  • baigel1
  • dkang3021
  • mleifer
  • pmomesso
  • eefi
  • jaredhood
  • jrhoads
  • apavlick
  • yext_eng_npm
  • benmcginnis
  • kunal-p
  • tmeyer2115
  • mbowman
  • jronkin_yext
  • svc_jenkins_consulting_yext
  • cblair_yext
  • willgorick
  • bhaines-yext
  • rconsalo
  • tritpham
  • sharvey
  • npatel94
  • telliottyext
  • johncho92
  • canderson_yext
  • ssaunders
  • rpope
  • eal172
  • peteros
  • ytruong