LycanUI
LycanUI

Getting Started

Introduction Installation Forms

Components

Accordion Alert Avatar Badge Button
Calendar - Soon TM
Checkbox
Date Field - Soon TM
Collapsible Dialog Dropdown Input Popover Radio Select Switch Textarea
Toaster - Soon TM

Dialog


Displays a menu to the user, which contains links or actions.

Edit Profile

Make changes to your profile here. Click save when you're done.

Installation


          rails g lycan_ui:add dialog
        

Features


  • Fully managed focus

  • Esc automatically closes the dialog

Usage


Usage with forms

To work with forms within your dialog, simply use the form method.

Note: This demo is a bit odd, since the form action will always fail.

Edit Profile

Make changes to your profile here. Click save when you're done.

Remote Dialogs

A common pattern with Turbo is server rendering Dialogs into a Turbo Frame. We support this out of the box by passing remote: true to ui.dialog.

This does two of things:

  • Wraps the dialog in a Turbo Frame with name dialog
  • Disallows the use of the trigger slot

Accessibility


Adheres to the Dialog WAI-ARIA design pattern