npm

@tdcerhverv/cvrlookup
TypeScript icon, indicating that this package has built-in type declarations

1.7.1 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i @tdcerhverv/cvrlookup

Weekly Downloads

0

Version

1.7.1

License

MIT

Unpacked Size

27.6 kB

Total Files

11

Last publish

Collaborators

  • antongb
  • dev_jonas
  • jeppebenjaminsen
  • ahhah
  • abdok
  • mikkv
  • clausr1990
  • tdc-sigbe
  • mdige
  • nuudaybot
  • tdc-olila
  • jeroen.dk.nl
  • renand
  • stegr
  • m84100
  • m92212
  • m87979
  • vertic
  • rasladev
  • muddz
  • tajsonik
  • linnt
  • molg