Sleek Form

Sleek Form

  • Docs

›Components

Components

  • Text
  • Rating
  • Scale
  • Select
  • Question
  • Summary
  • Welcome
  • Radio
  • SleekFormThemProvider

Summary

Summary component to list items under a heading and show the summary of those items.

Usage

const items: Array<SummaryItemType> = [
  { itemName: 'T-Shirt', itemValue: '20$' },
  { itemName: 'Size', itemValue: 'L' },
  { itemName: 'Quantity', itemValue: '2' },
  { itemName: 'Your Email', itemValue: '[email protected]' },
  { itemName: 'Shipping', itemValue: 'Flat 108 first floor, Anvotha Bee, 7th cross Alfa-Garden, KR-Puram, 500049' },
];

<Summary 
 header="Order Summary:"
 items={items}
 summary={{ itemName: 'Sum total', itemValue: '50$' }}
/>

Types

export type SummaryItemType = { itemName: string; itemValue: string };

Props

The SummaryField supports the following properties

PropsDescriptionTypeDefault
headerHeading of list of item.stringNone
itemsList of items shown under heading.ArrayNone
summaryNet summary of itemsSummaryItemTypeNone

Demo

You can view a live demo of SummaryField in our sandbox

← QuestionWelcome →
  • Usage
  • Types
  • Props
  • Demo
Sleek Form
Docs
Getting Started
More
GitHub
Copyright © 2020 Fresalabs