Form Components in Pug
Component:
Page Title
Code:
//Section
.tc-section
	.h1.page-title Page Title
	.row
Component:
Section Title
Code:
//Section
.tc-section
	.h4.tc-section__title Section Title
	.row
Component:
Code:
.col-md-6
	+input('text', 'Input', 'Placeholder', 'input-1', '', 'required', '', 'Value', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+inputColor('Color', 'Placeholder', 'color-1', '', 'required', '', '#000000', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+inputLink('password', 'Password', '•••••••••', 'input-4', 'form-group--no-divider', 'required', '', 'Value', 'iconView', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+textarea('Textarea', 'Placeholder', 'textarea-1', '', 'required', '', 'Value', 'Label Bottom', 'Label Top Secondary')
Component:
Legend
Code:
.col-md-6
	+radioGroup('Radio', 'radio-1', ['Yes', 'No', 'Unset'], '', '', 'not-required', '', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+checkboxGroup('Checkbox', 'checkbox-1', ['Option 1', 'Option 2', 'Option 3'], '', '', 'not-required', '', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+checkboxSingle('Checkbox Single', 'checkbox-2', 'Checkbox Single', '', '', 'Label Bottom', 'Label Top Secondary', 'mb-0')
Component:
Code:
.col-md-6
	+autocomplete('Autocomplete', 'Placeholder', 'autocomplete-1', '', 'required', '', 'Value', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+autocompleteIcon('Autocomplete Settings', 'Placeholder', 'autocomplete-3', '', 'required', '', 'Value', 'iconSettings', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+autocompleteIcon('Autocomplete Link', 'Placeholder', 'autocomplete-4', '', 'required', '', 'Value', 'iconLink', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+autocompleteMultipleIcon('Autocomplete Multiple Link', 'Placeholder', 'autocomplete-6', '', 'required', '', 'Value', 'iconLink', 'Bottom Label', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+autocompleteMultiple('Autocomplete Multiple', 'Placeholder', 'autocomplete-2', '', 'required', '', 'Value', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+autocompleteMultipleIcon('Autocomplete Multiple Settings', 'Placeholder', 'autocomplete-5', '', 'required', '', 'Value', 'iconSettings', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+datePicker('Date', 'date-1', '', 'required', '', 'Jan-09-2022', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+timePicker('Time', 'time-1', '', 'required', '', '10:45 AM', 'Label Bottom', 'Label Top Secondary')
Component:
Code:
.col-md-6
	+dateTimePicker('Date Time', 'date-time-1', '', 'required', '', 'Jan-09-2022 10:45 AM', 'Label Bottom', 'Label Top Secondary')
Component:
  or drag & drop it here
Supported file types are .jpg or .png
Max file size is 2 MB.
Sample Document.pdf
Code:
+fileUpload('File', 'file-1', '', 'required', '', '', 'Label Bottom', 'Label Top Secondary')