,
) => (
+
{prefix}
{': '}
diff --git a/proprietary/tokens/src/components/ams/error-message.tokens.json b/proprietary/tokens/src/components/ams/error-message.tokens.json
index a742de7279..84ccb6548a 100644
--- a/proprietary/tokens/src/components/ams/error-message.tokens.json
+++ b/proprietary/tokens/src/components/ams/error-message.tokens.json
@@ -5,6 +5,7 @@
"font-family": { "value": "{ams.text.font-family}" },
"font-size": { "value": "{ams.text.level.6.font-size}" },
"font-weight": { "value": "{ams.text.font-weight.normal}" },
+ "gap": { "value": "{ams.space.xs}" },
"line-height": { "value": "{ams.text.level.6.line-height}" }
}
}
diff --git a/storybook/src/components/ErrorMessage/ErrorMessage.docs.mdx b/storybook/src/components/ErrorMessage/ErrorMessage.docs.mdx
index ce55a97394..5929aa8747 100644
--- a/storybook/src/components/ErrorMessage/ErrorMessage.docs.mdx
+++ b/storybook/src/components/ErrorMessage/ErrorMessage.docs.mdx
@@ -21,3 +21,10 @@ This makes the error message more clear for screen reader users.
If you want to change this prefix, to support another language for example, you can use the `prefix` prop.
+
+### With custom icon
+
+Replace the icon with another to use Error Message in a different theme or visual identity.
+Applications for the City of Amsterdam must use the default icon.
+
+
diff --git a/storybook/src/components/ErrorMessage/ErrorMessage.stories.tsx b/storybook/src/components/ErrorMessage/ErrorMessage.stories.tsx
index 3dc79cad2b..1e0357567e 100644
--- a/storybook/src/components/ErrorMessage/ErrorMessage.stories.tsx
+++ b/storybook/src/components/ErrorMessage/ErrorMessage.stories.tsx
@@ -4,6 +4,7 @@
*/
import { ErrorMessage } from '@amsterdam/design-system-react/src'
+import { AnnouncementIcon } from '@amsterdam/design-system-react-icons'
import { Meta, StoryObj } from '@storybook/react'
const meta = {
@@ -31,3 +32,9 @@ export const CustomPrefix: Story = {
prefix: 'Error',
},
}
+
+export const WithCustomIcon: Story = {
+ args: {
+ icon: AnnouncementIcon,
+ },
+}