How to use the react-view.PropTypes.Object function in react-view

To help you get started, we’ve selected a few react-view examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github uber / baseweb / documentation-site / components / yard / knob.tsx View on Github external
clearable={false}
              value={[{id: valueKey || '', option: valueKey}]}
              labelKey="option"
              valueKey="id"
              onChange={({value}) => {
                globalSet(`${enumName || name.toUpperCase()}.${value[0].id}`);
              }}
            />
          )}
          
        
      );
    case PropTypes.ReactNode:
    case PropTypes.Function:
    case PropTypes.Array:
    case PropTypes.Object:
      return (
        
          <label>{name}</label>
           {
              globalSet(code);
            }}
            code={val ? String(val) : ''}
            placeholder={placeholder}
            small
          /&gt;
          
        
      );
    case PropTypes.Custom:
      return null;
github uber / baseweb / documentation-site / components / yard / config / popover.ts View on Github external
ignoreBoundary: {
      value: undefined,
      type: PropTypes.Boolean,
      description:
        'If true, popover element will not avoid element boundaries.',
      hidden: true,
    },
    mountNode: {
      value: undefined,
      type: PropTypes.String,
      description: 'Defines where to mount the popover.',
      hidden: true,
    },
    popperOptions: {
      value: undefined,
      type: PropTypes.Object,
      description:
        'Popper options override https://popper.js.org/popper-documentation.html#Popper.Defaults.',
      hidden: true,
    },
    ...pick(changeHandlers, [
      'onBlur',
      'onFocus',
      'onEsc',
      'onMouseEnter',
      'onMouseLeave',
    ]),
    overrides: {
      value: undefined,
      type: PropTypes.Custom,
      description: 'Lets you customize all aspects of the component.',
      custom: {
github uber / baseweb / documentation-site / components / yard / config / datepicker.ts View on Github external
value: undefined,
      type: PropTypes.Array,
      description: 'A list Array of selectable dates.',
      hidden: true,
    },
    range: {
      value: undefined,
      type: PropTypes.Boolean,
      description: 'Defines if a range of dates can be selected.',
    },
    positive: inputConfig.props.positive,
    error: inputConfig.props.error,
    size: inputConfig.props.size,
    locale: {
      value: undefined,
      type: PropTypes.Object,
      description:
        'A locale object. See date-fns for more details https://github.com/date-fns/date-fns/tree/master/src/locale.',
      hidden: true,
    },
    maxDate: {
      value: undefined,
      type: PropTypes.Date,
      description: 'A max date that is selectable.',
      placeholder: '2020-10-17T07:00:00.000Z',
    },
    minDate: {
      value: undefined,
      type: PropTypes.Date,
      description: 'A min date that is selectable.',
      placeholder: '2018-10-17T07:00:00.000Z',
    },