Build JSON object for Slack Block Kit surfaces from JSX
MIT License
Published by yhatt over 3 years ago
@types/react
(#226)
FunctionCompnent
/ FC
(Alias to same types in JSXSlack
namespace)VoidFunctionComponent
/ VFC
(Alias to same types in JSXSlack
namespace)Node
(Similar to ReactNode
but for jsx-slack. Alias to JSXSlack.ChildElements
)Published by yhatt over 3 years ago
Published by yhatt about 4 years ago
dispatchAction
prop for <Input type="text">
and <Textarea>
(equivalent to dispatch_action_config
for the plain-text input) (#204, #205)<Mrkdwn raw>
to bypass HTML-like formatting and auto-escaping (#161, #207)Published by yhatt about 4 years ago
<Input>
and input components are available in home tab container <Home>
(#195, #200)<RadioButtonGroup>
and <CheckboxGroup>
in message container <Blocks>
(#196, #197)dispatchAction
prop for <Input>
layout block and input components (#200)jsxFragmentFactory
compiler option for TypeScript v4 (#173, #191)Published by yhatt about 4 years ago
<Header>
component for layout block (#184, #185)how-to-setup-jsx-transpiler.md
(#183 by @mashabow)Published by yhatt over 4 years ago
<Call>
layout block component to show a card of registered call (#164, #165)Published by yhatt over 4 years ago
Published by yhatt over 4 years ago
jsx-slack v2 has improved JSX structure and built-in components to output the real JSON from JSX!
▶︎ See highlight of v2 updates
<CheckboxGroup values>
and <Checkbox checked>
do no longer mergeJSXSlack.Child
and JSXSlack.Children
have been renamed into JSXSlack.ChildElement
and JSXSlack.ChildElements
and no longer provided generics<Home>
container now accepts <Input type="hidden" />
and custom transformer to store private metadatavalue
prop for <Option>
has made optional to follow HTML specificationconfirm
prop for interactive block elements accepts the raw confirm composition object<a>
tag renders short syntax for hyperlink if possibleJSXSlack.createElement
, JSXSlack.isValidElement
, and JSXSlack.Children
helpers<Option selected>
and <RadioButton checked>
value
prop as an alias into initialXXX
prop in some interactive componentsautomatic
runtime in Babel >= 7.9 (experimental) (#142)<ConversationsSelect include>
(#145)README.md
(#146 by @nicosachse)JSXSlack.legacyParser()
and jsxslack.fragment
jsxslack.raw
template literal tag (It has become just an alias to jsxslack
in v2)Published by yhatt over 4 years ago
Published by yhatt over 4 years ago
jsxslack
template literal tag now returns raw JSX element, or JSON if serializable (#127)jsxslack.raw
template literal tag to generate JSX element always (#127)jsxslack.fragment
template literal tag has deprecated (Use jsxslack
or jsxslack.raw
instead) (#127)Published by yhatt over 4 years ago
type
attribute for <ol>
element (#117)<RadioButton>
(#119, #122)