Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- xData_ :: Text -> Attribute
- xBind_ :: Text -> Text -> Attribute
- xHtml_ :: Text -> Attribute
- xCloak_ :: Attribute
- xEffect_ :: Text -> Attribute
- xFor_ :: Text -> Attribute
- xForKey_ :: Text -> Attribute
- xIf_ :: Text -> Attribute
- xIgnore_ :: Attribute
- xInit_ :: Text -> Attribute
- xModel_ :: [Text] -> Text -> Attribute
- xOn_ :: Text -> Text -> Attribute
- xRef_ :: Text -> Attribute
- xShow_ :: Text -> Attribute
- xText_ :: Text -> Attribute
- xTransition_ :: Maybe Text -> [Text] -> Text -> Attribute
- useAlpine :: Monad m => HtmlT m ()
- useAlpineVersion :: Monad m => (Int, Int, Int) -> HtmlT m ()
Documentation
xData_ :: Text -> Attribute Source #
x-data Declare a new Alpine component and its data for a block of HTML
:: Text | Attribute name |
-> Text | |
-> Attribute |
x-bind Dynamically set HTML attributes on an element
x-cloak Hide a block of HTML until after Alpine is finished initializing its contents
xEffect_ :: Text -> Attribute Source #
x-effect Execute a script each time one of its dependancies change
xIf_ :: Text -> Attribute Source #
x-if Conditionally add/remove a block of HTML from the page entirely.
:: [Text] | List of x-model modifiers |
-> Text | |
-> Attribute |
x-model Synchronize a piece of data with an input element
xRef_ :: Text -> Attribute Source #
x-ref Reference elements directly by their specified keys using the $refs magic property
:: Maybe Text | Transition directive |
-> [Text] | List of x-transition modifiers |
-> Text | |
-> Attribute |
x-transition Transition an element in and out using CSS transitions
useAlpine :: Monad m => HtmlT m () Source #
Use this value in your head_
tag to use Alpine.js in your lucid templates
useAlpineVersion :: Monad m => (Int, Int, Int) -> HtmlT m () Source #
Choose the version of Alpine.js to use using a 3-tuple representing semantic versioning