Socket
Socket
Sign inDemoInstall

@instructure/ui-prop-types

Package Overview
Dependencies
3
Maintainers
35
Versions
1385
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/ui-prop-types


Version published
Weekly downloads
32K
increased by13.62%
Maintainers
35
Install size
488 kB
Created
Weekly downloads
 

Readme

Source

category: packages

ui-prop-types

npm build-status MIT License Code of Conduct

A collection of custom prop type validators.

Installation

yarn add @instructure/ui-prop-types

Usage

import React from 'react'
import PropTypes from 'prop-types'

import { Children, controllable } from '@instructure/ui-prop-types'

class MyComponent extends React.Component {
  static propTypes = {
    children: Children.oneOf([SomeOtherComponent, AnotherComponent])
    selected: controllable(PropTypes.bool, 'onSelect'),
    onSelect: PropTypes.func
  }
  ...
}

Functions

The ui-prop-types package contains the following:

FAQs

Last updated on 22 Mar 2019

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc