Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

encore-components

Package Overview
Dependencies
Maintainers
9
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

encore-components

React Components for Encore sites and widgets

  • 4.1.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
9
Created
Source

Encore Components

React Components for Encore sites and widgets

Install

$ npm install encore-components

Usage

  1. Import component
  2. Render component using ReactDOM

Documentation

Spinner

Render spinner with overlay. Can be used to show loader when application is loading. #####Props

PropTypeDescriptionIs required?
classModifierstringExternal CSS class that will be added to the spinnerno
messagestringText message shown above spinnerno
withOverlaybooleanDefine overlay visibilityno
stylesConfigobjectConfiguration of spinner stylesno

Popup

Render popup. Can be used to show content in popup modal. #####Props

PropTypeDescriptionIs required?
hasHeaderbooleanToggle header (default true)no
hasOverlaybooleanToggle overlay (default true)no
titlestringHeader titleno
themestringDefine theme. ( default
onClosefuncCallback function to close.no

Calendar

Render calendar to page. #####Props

PropTypeDescriptionIs required?
optionsobjectOptions objectno
isLoadingbooleanToggle spinner appearanceno
spinnerMessagestringAttach msg to loading spinnerno
disabledSelectbooleanno
cssClassNamestringClassname of calendarno
themeConfigurationobjectno
parentTemplatestringno
isErrorbooleanno
onMonthSelector...boolean"onMonthSelectorChange"no
(date: string)
onValueUpdatefunc(selectedDates: Date[], selectedDay: string)no
onReadyfunc(args: CalendarCallbackArguments)no
onMonthChangefunc(instance: Instance)no
shouldCalendarR...boolean"shouldCalendarRemainOpenOnFormClick"no
spinnerStylesConfigobjectConfiguration of spinner stylesno

Error message

Render error message popup #####Props

PropTypeDescriptionIs required?
messagestringText inside the error componentyes
onClickfuncCB when popup is clickedyes

Render carousel according to passed data. #####Props

PropTypeDescriptionIs required?
widgetNamestringTo understand from what widget click has fired.yes
slidesToShownumberAmount of slides to show. Otherwise will be set 1no
slideWidthnumberWidth of each item in carousel. Otherwise will be set 250no
carouselList{id: string; name: string; imageUrl: string;}[]Array of carousel items data. Otherwise will be used mocked datano
customContentJSX.Elements[]Array of elements with injected data which are going to be rendered as items. Otherwise will be used default JSX templateno

FAQs

Package last updated on 29 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc