Sign In

@tadamus/wpui

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tadamus/wpui

A collection of React components that we use to build interfaces for our plugins.

Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
11
57.14%
Maintainers
1
Weekly downloads
 
Created
Source

WP Layout Pack

A collection of React components that we use to build interfaces for the plugins from Tadamus.

Elements

The set of elements included in the library.

Button

A button based on an input element.

Props

The dynamic variables that can be passed to the component.

wrapExtraClass

Class names that will be added to the wrap div.

extraClass

Class names that will be added to the button.

label

The text that will be added on the button.

Checkbox

A checkbox input element.

Props

The dynamic variables that can be passed to the component.

onChange

The function that will run on the onChange event listener along with the default function that ticks the box.

wrapExtraClass

Class names that will be added to the wrap div.

label

The text that will be added next to the checkbox.

name

The name attribute of the HTML input element

id

The id attribute of the HTML input element

FormGroup

A wrapping element for all the groups in a form block.

Props

The dynamic variables that can be passed to the component.

extraClass

Class names that will be added to the div.

HelperText

A small text that can be added below a form element to explain what it does.

Props

The dynamic variables that can be passed to the component.

wrapExtraClass

Class names that will be added to the wrap div.

extraClass

Class names that will be added to the paragraph element.

content

The contents of the helper text.

Label

Label element that can be added to a form input

Props

The dynamic variables that can be passed to the component.

wrapExtraClass

Class names that will be added to the wrap div.

htmlFor

The for attribute.

extraClass

Class names that will be added to the label element.

label

The text that will be added to the label.

SinglePasswordInput

A input field for passwords

Props

The dynamic variables that can be passed to the component.

wrapExtraClass

Class names that will be added to the wrap div.

extraClass

Class names that will be added to the input element.

name

The name attribute of the HTML input element

id

The id attribute of the HTML input element

onChange

The function that will run on the onChange event listener along with the default function.

value

The value of the element.

SingleTextInput

A input field for passwords

Props

The dynamic variables that can be passed to the component.

wrapExtraClass

Class names that will be added to the wrap div.

extraClass

Class names that will be added to the input element.

name

The name attribute of the HTML input element

id

The id attribute of the HTML input element

onChange

The function that will run on the onChange event listener along with the default function.

value

The value of the element.

Header

The header element that we add at the top of any administrator page.

Props

The dynamic variables that can be passed to the component.

The image that will be added to the logo image element. Default: https://account.tadamus.com/wp-content/uploads/2023/11/Tadamus-logo-300-60-px.png

logoURL

The link that will be added to the logo. Default: https://tadamus.com

pageTitle

The title that will be added to the main heading

A regular link but stylized as a button

Props

The dynamic variables that can be passed to the component.

wrapExtraClass

Class names that will be added to the wrap div.

extraClass

Class names that will be added to the link element.

label

The text that will be added to the button.

click

The function that will run on the click event.

HeadingTwo

A heading element representing a H2 element.

Props

The dynamic variables that can be passed to the component.

wrapExtraClass

Class names that will be added to the wrap div.

extraClass

Class names that will be added to the heading element.

label

The text that will be added to the element.

Table

A table element

Props

The dynamic variables that can be passed to the component.

extraClass

Class names that will be added to the table element.

editable

Must be a boolean and represents weather the columns should have contentEditable turned on or not.

onBlur

The function that will run on the onBlur event of the editable columns.

headers

The names of the header cells.

rows

The array of objects that will be added as rows.

Keywords

layout

FAQs

Package last updated on 01 Feb 2024

Related posts