diff --git a/laa-ccms-spring-boot-starters/laa-ccms-spring-boot-starter-govuk-dialect/Readme.md b/laa-ccms-spring-boot-starters/laa-ccms-spring-boot-starter-govuk-dialect/Readme.md index a9309ae..8443a2d 100644 --- a/laa-ccms-spring-boot-starters/laa-ccms-spring-boot-starter-govuk-dialect/Readme.md +++ b/laa-ccms-spring-boot-starters/laa-ccms-spring-boot-starter-govuk-dialect/Readme.md @@ -60,4 +60,23 @@ This ensures that all attributes, including conditional and computed values, are -``` \ No newline at end of file +``` + +### Details Element Tag Processor + +The `DetailsElementTagProcessor` is a custom Thymeleaf tag processor that enables the use of a `` tag to generate a `
` HTML element styled with the GOV.UK Design System classes. + +#### Features +- Generates a `
` element with the `govuk-details` class. +- Includes a `` element with a customizable summary text. +- Includes a `
` element for detailed content. + +#### Usage +To use this processor, define a `govuk:details` tag in your Thymeleaf templates and provide the following attributes: + +- **`summaryText`**: The text displayed in the summary section of the `
` element. +- **`text`**: The content displayed inside the `
` when the details are expanded. + +#### Example +```html +