When you’re on maternity leave you build up holiday entitlement, just the same as you would if you were at work. If you normally have Bank Holidays off, in addition to your holiday allowance you can usually take these days at another time too.
You can calculate your holiday entitlement on the GOV UK website.