A hiccup-like interface for creating views in Slack applications via blocks. https://api.slack.com/reference/block-kit/blocks
A hiccup-like interface for creating views in Slack applications via blocks. https://api.slack.com/reference/block-kit/blocks
(confirm props txt)
An object that defines a dialog that provides a confirmation step to any interactive element.
Component usage:
[:confirm {:confirm "Ok!" :deny "Nah!" :title "This is a title!"}
[:text "Are you sure?"]]
[:confirm {:confirm "Ok!" :deny "Nah!" :title "This is a title!"} "Are you sure?"]
An object that defines a dialog that provides a confirmation step to any interactive element. Component usage: ```clojure [:confirm {:confirm "Ok!" :deny "Nah!" :title "This is a title!"} [:text "Are you sure?"]] [:confirm {:confirm "Ok!" :deny "Nah!" :title "This is a title!"} "Are you sure?"] ```
(markdown text)
(markdown txt verbatim?)
Explicitly creates a markdown text object.
Component usage:
[:markdown "# Hello"]
[:markdown "# Goodbye" true]
[:markdown {:text "# Greetings" :verbatim true}]
Explicitly creates a markdown text object. Component usage: ```clojure [:markdown "# Hello"] [:markdown "# Goodbye" true] [:markdown {:text "# Greetings" :verbatim true}] ```
(option props txt)
An object that represents a single selectable item in a select menu, multi-select menu, checkbox group, radio button group, or overflow menu.
Component usage:
[:option {:value "1"} "Label"]
[:option {:value "1"} {:type :plain_text :text "Label"}]
[:option {:value "1" :description "Oh hello"} "Label"]
Options used in elements supporting initial_option(s), also support a :selected? property.
An object that represents a single selectable item in a select menu, multi-select menu, checkbox group, radio button group, or overflow menu. Component usage: ```clojure [:option {:value "1"} "Label"] [:option {:value "1"} {:type :plain_text :text "Label"}] [:option {:value "1" :description "Oh hello"} "Label"] ``` Options used in elements supporting initial_option(s), also support a :selected? property.
(option-group label & children)
Provides a way to group options in a select menu or multi-select menu.
Component usage:
[:option-group
[:label "Pizza Toppings"]
[:option {:value "1"} "Mushrooms"]
[:option {:value "2"} "Pepperoni"]]
Provides a way to group options in a select menu or multi-select menu. Component usage: ```clojure [:option-group [:label "Pizza Toppings"] [:option {:value "1"} "Mushrooms"] [:option {:value "2"} "Pepperoni"]] ```
(plain-text text)
(plain-text txt emoji?)
Explicitly creates a plain text object.
Component usage:
[:plain-text "Hello"]
[:plain-text "Goodbye" false]
[:plain-text {:text "Greetings" :emoji false}]
Explicitly creates a plain text object. Component usage: ```clojure [:plain-text "Hello"] [:plain-text "Goodbye" false] [:plain-text {:text "Greetings" :emoji false}] ```
(text props)
An object containing some text, formatted either as plain_text or using mrkdwn.
If a map of props is given, it will be used to construct a text object. Otherwise a string literal is assumed and a default plain text object will be created.
Component usage:
[:text "Hello"]
[:text {:type :mrkdwn :verbatim false :text "# Hello"}]
[:text {:type :plain_text :emoji true :text "Hello"}]
An object containing some text, formatted either as plain_text or using mrkdwn. If a map of props is given, it will be used to construct a text object. Otherwise a string literal is assumed and a default plain text object will be created. Component usage: ```clojure [:text "Hello"] [:text {:type :mrkdwn :verbatim false :text "# Hello"}] [:text {:type :plain_text :emoji true :text "Hello"}] ```
(with-text props ks)
Updates the given keys to conform to a text element. Will run the given keys through the (text) function if they are present in the set of props.
Updates the given keys to conform to a text element. Will run the given keys through the (text) function if they are present in the set of props.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close