Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@formdown/ui

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formdown/ui

Pure HTML renderer for Formdown syntax

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

@formdown/ui

Web component viewer for rendering Formdown forms.

Installation

npm install @formdown/ui

Usage

HTML

<script type="module">
  import '@formdown/ui'
</script>

<formdown-ui 
  content="@name: [text required]
@email: [email required]"
  submit-text="Submit Form">
</formdown-ui>

JavaScript

import '@formdown/ui'

const viewer = document.querySelector('formdown-ui')
viewer.content = '@name: [text required]'
viewer.submitText = 'Submit Form'

// Listen for form submissions
viewer.addEventListener('formSubmit', (event) => {
  console.log('Form data:', event.detail.data)
})

Properties

  • content (string) - The Formdown content to render
  • submitText (string) - Text for submit button (default: "Submit")
  • showLabels (boolean) - Whether to show field labels (default: true)

Events

  • formSubmit - Fired when form is submitted
    • detail.data - Form data object
  • fieldChange - Fired when any field changes
    • detail.field - Field name
    • detail.value - Field value

Features

  • Real-time form rendering
  • Form validation
  • Custom styling support
  • Responsive design
  • Accessibility features

Documentation

For complete documentation, visit the Formdown documentation.

License

MIT

Keywords

ui

FAQs

Package last updated on 18 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts