Skip to content

Commit

Permalink
feat: form fields block page (#2787)
Browse files Browse the repository at this point in the history
* feat: form fields block

* fix: lint fixes

* fix: lint fixes

* fix: cr fixes

* fix: cr fixes

* fix: cr fixes

* fix: cr fixes

* fix: cr fixes

* fix: cr fixes

* fix: cr fixes

* fix: cr fixes
  • Loading branch information
justyna-13 committed Jun 15, 2023
1 parent 5a13fef commit 17e7e60
Show file tree
Hide file tree
Showing 13 changed files with 1,404 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changeset/funny-seahorses-work.md
@@ -0,0 +1,6 @@
---
'@storefront-ui/react': patch
'@storefront-ui/vue': patch
---

SfSelect wrapper as span tag
6 changes: 6 additions & 0 deletions .changeset/violet-paws-press.md
@@ -0,0 +1,6 @@
---
'@storefront-ui/react': minor
'@storefront-ui/vue': minor
---

add Email icon
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions apps/docs/components/blocks/FormFields.md
@@ -0,0 +1,23 @@
---
layout: DefaultLayout
hideToc: true
hideBreadcrumbs: true
description: The Form Fields block is designed to showcase the usage of various input types, such as Input, Checkbox, Radio, Select, SelectDropdown, Combobox, Button, etc., using a single form as an example. It demonstrates the application of required fields, indicated by an asterisk (*) next to the label, and handles error validation.
---
# Form fields

{{ $frontmatter.description }}

Forms can be presented as dedicated pages or integrated within modals, cards, or side panels, with the form's context influencing its layout and vertical spacing. Typically, dedicated-page forms can accommodate greater complexity. This block use a responsive grid to drive layout decisions, ensuring optimal display across different screen sizes and devices.

For further customization of layouts, we recommend referring to our documentation on Modal and Drawer pages.

<Showcase showcase-name="FormFields/FormFieldsRequired" style="min-height:600px">

<!-- vue -->
<<<../../preview/nuxt/pages/showcases/FormFields/FormFieldsRequired.vue
<!-- end vue -->
<!-- react -->
<<<../../preview/next/pages/showcases/FormFields/FormFieldsRequired.tsx#source
<!-- end react -->
</Showcase>

0 comments on commit 17e7e60

Please sign in to comment.