dsg-components

1.0.5 • Public • Published

dsg-components

List of React forms and components for DSG and Cactus use.

Installation

npm install @dsgautonpm/dsg-components -S

Usage

import { DsgWizard } from '@dsgautonpm/dsg-components';

<DsgWizard
  postUrl="https://www.where-should-i-post-this.com/api/route"
  carList={[
    {
      name: "Sedan",
      value: "sedan",
      content: <img src="sedan.png" />
    },
    {
      name: "SUV",
      value: "suv",
      content: <img src="suv.png" />
    },
  ]}
  afterPost={() => console.log('ITS POSTED!!')}
/>}

Props

DsgWizard

key default type notes
postUrl "" string (required) Where should the data be posted?
carList [] array (required) Car data shown on the first step of the form?
afterPost null function(formValues) What to do after form is posted. Form values are passed to function.
siteId "" string The sites id (eg. "DAA").

Publish Instructions

  1. npm version patch (patch, major, or minor) OR manually update in package.json (preferred method as npm version auto commits)
  2. npm run build
  3. Commit changes
  4. npm publish
  5. Update repos that use this package if needed.

Readme

Keywords

none

Package Sidebar

Install

npm i dsg-components

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

293 kB

Total Files

52

Last publish

Collaborators

  • lendingarch