1.7.1 • Published 3 years ago

@tdcerhverv/cvrlookup v1.7.1

Weekly downloads
117
License
MIT
Repository
github
Last release
3 years ago

CvrLookup component

This is an autocomplete CVR lookup component used for searching Companies.

Usage

Import like this:

import { CvrLookup } from '@tdcerhverv/cvrlookup';

Use like this:

<CvrLookup {...props}>{children}</CvrLookup>

Props

export interface ICvrLookupProps {
  id: string;
  labels?: ICvrLookupLabels;
  exposedData?: 'lite' | 'full'; // not giving a value for this prop will render a component that points to a DEPRECATED endpoint; please try to always supply 'full' or 'lite'
  onChange?: (value, payload) => void // `value` is the displayed label, `payload` is the { address, name, cvrNumber, pNumber }
  onBlur?: (value: string) => void;
  forceError?: boolean;
}

export interface ICvrLookupLabels {
  label: string;
  noResult: string;
  errorLabel: string;
}

Tags

CVR, Company.

1.7.1

3 years ago

1.7.0

3 years ago

1.6.3

3 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

4 years ago

1.0.0

4 years ago