Snippng

Write, customize and download gorgeous images of your code snippet. Beautifully designed application that helps you generate beautiful and customizable images of your code snippets.

App.jsx
import { useState } from 'react'
import { Switch } from '@headlessui/react'

export const Example = () => {
    const [enabled, setEnabled] = useState(true)

    return (
      <form action="/notification-settings" method="post">
        <Switch checked={enabled} onChange={setEnabled} name="notifications">
          {/* ... */}
        </Switch>
        <button>Submit</button>
      </form>
    )
}