Slackblocks.Components.Accordion (slackblocks v2.8.0)
View SourceExpands collapsible sections into ordinary blocks in display order.
Summary
Functions
Checks a nonempty list of collapsible containers before returning its blocks.
Like to_blocks/1, raising on failure.
Functions
@spec to_blocks([Slackblocks.Blocks.Container.t()]) :: {:ok, [Slackblocks.Blocks.Container.t()]} | {:error, Slackblocks.ValidationError.t()}
Checks a nonempty list of collapsible containers before returning its blocks.
@spec to_blocks!([Slackblocks.Blocks.Container.t()]) :: [ Slackblocks.Blocks.Container.t() ]
Like to_blocks/1, raising on failure.