Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Mar 8, 2024
1 parent 606b7c5 commit d0ea9a9
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,36 @@

## Introduction

A simple block to show a rolling number.

Internally it supports the basic options of [react-countup](https://www.npmjs.com/package/react-countup)

It allows setting the start and end values, the duration of the counting, the start delay, decimal and thousands separator, ...

It also allows adding a title and selecting its heading and position.

## Install

Add `@codesyntax/volto-countup-block` to you project's or addon's dependencies and you are done. The block will be available.

## Customization

You can restrict the list of allowed tags to render the title of the counter. Just modify the `titleTags` property of the block in your config:


```js
const applyConfig = (config) => {
// Own blocks
config.blocks.blocksConfig['countUpBlock']['titleTags'] = [
['h3', 'h3'],
['h4', 'h4'],
];

return config;
};



## Development

You can develop an add-on in isolation using the boilerplate already provided by the add-on generator.
Expand Down

0 comments on commit d0ea9a9

Please sign in to comment.