From a35101921c94c6c5a9ecc855a03d8bd5d3740c73 Mon Sep 17 00:00:00 2001 From: -l Date: Mon, 15 May 2023 12:03:39 +0200 Subject: [PATCH] docs(ToggleButton): improve event docs --- .../src/docs/uilib/components/toggle-button/events.mdx | 4 ++-- .../src/docs/uilib/components/toggle-button/properties.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/toggle-button/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/components/toggle-button/events.mdx index 176eaa944af..c3032a2c516 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/components/toggle-button/events.mdx +++ b/packages/dnb-design-system-portal/src/docs/uilib/components/toggle-button/events.mdx @@ -2,13 +2,13 @@ showTabs: true --- -## ToggleButton (button) events +## `ToggleButton` events | Events | Description | | ----------- | ------------------------------------------------------------------------------------------------------------------------ | | `on_change` | _(optional)_ will be called on state changes made by the user. Returns a boolean and string `{ checked, value, event }`. | -## ToggleButton (group) events +## `ToggleButton.Group` events | Events | Description | | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/toggle-button/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/components/toggle-button/properties.mdx index 6655daf6ad3..89fca545c17 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/components/toggle-button/properties.mdx +++ b/packages/dnb-design-system-portal/src/docs/uilib/components/toggle-button/properties.mdx @@ -2,7 +2,7 @@ showTabs: true --- -## ToggleButton (button) properties +## `ToggleButton` properties | Properties | Description | | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -22,7 +22,7 @@ showTabs: true | `skeleton` | _(optional)_ if set to `true`, an overlaying skeleton with animation will be shown. | | [Space](/uilib/components/space/properties) | _(optional)_ spacing properties like `top` or `bottom` are supported. | -## ToggleButton (group) properties +## `ToggleButton.Group` properties | Properties | Description | | ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |