New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@wpmudev/react-tutorials

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wpmudev/react-tutorials

WPMU DEV Shared UI React Tutorials Component

Source
npmnpm
Version
1.0.11
Version published
Weekly downloads
3
200%
Maintainers
3
Weekly downloads
 
Created
Source

npm npm (prod) dependency version npm (prod) dependency version

Tutorials

Tutorials allows you to showcase WPMU DEV posts tagged as tutorials in Lists Mode or Slider Mode.

Installation

npm i @wpmudev/react-tutorials --save-dev

Usage

Javascript Instantiation

import React from 'react';
import {
  TutorialsList,
  TutorialsSlider
} from '@wpmudev/react-tutorials';

const MyApp = () => {
  return (
    <>

      <TutorialsList
        title="Tutorials"
        category={ category_id }
      />

      <TutorialsSlider
        title="Tutorials"
        category={ category_id }
        viewAll="https://premium.wpmudev.org/blog/"
      />

    </>
  );
}

Components

The following are Tutorials components. Other components outside of this package cannot be used with these components.

List

Tutorials List allows you to list WPMU DEV posts categorized by plugin name and tagged as tutorials.

import React from 'react';
import {
  TutorialsList
} from '@wpmudev/react-tutorials';

const MyApp = () => {
  return (
    <TutorialsList
      title="Tutorials"
      category={ category_id }
    />
  );
}

Props

Grab your plugin category unique ID from demo site. Go to Controls that is located in Add-ons section, at the bottom of the screen, and select your plugin from the dropdown list.

Note: If you are not able to see Controls section, click on "A" letter and some options will show up at the bottom of the screen.

Prop NameTypeRequiredDescription
titlestringNoIncludes a title in the box that contains the list of posts.
categorystringYesRetrieve posts tagged as "tutorial" from plugin category ID.

Slider

Tutorials Slider allows you to list WPMU DEV posts categorized by plugin name and tagged as tutorials. These posts will appear as a slideshow and the block can be dismissed.

import React from 'react';
import {
  TutorialsSlider
} from '@wpmudev/react-tutorials';

const MyApp = () => {
  return (
    <TutorialsSlider
      title="Tutorials"
      category={ category_id }
      viewAll="https://premium.wpmudev.org/blog/"
    />
  );
}

Props

Grab your plugin category unique ID from demo site. Go to Controls that is located in Add-ons section, at the bottom of the screen, and select your plugin from the dropdown list.

Note: If you are not able to see Controls section, click on "A" letter and some options will show up at the bottom of the screen.

Prop NameTypeRequiredDescription
titlestringNoIncludes a title in the slideshow box.
categorystringYesRetrieve posts tagged as "tutorial" from plugin category ID.
viewAllstringNoWhen has content shows a "View All" text with link in it.

FAQs

Package last updated on 10 Feb 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