From b982c7df9d9de320cd9f96b8b603ed6cca1a5038 Mon Sep 17 00:00:00 2001 From: -l Date: Fri, 5 Jul 2024 11:06:38 +0200 Subject: [PATCH] docs(Field.Number): add demo/example --- .../extensions/forms/base-fields/Number/Examples.tsx | 8 ++++++++ .../uilib/extensions/forms/base-fields/Number/demos.mdx | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/Examples.tsx index 2053a5d69db..991557af7b3 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/Examples.tsx +++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/Examples.tsx @@ -243,6 +243,14 @@ export const ValidateMinimum = () => { ) } +export const AllowNegative = () => { + return ( + + + + ) +} + export const Percentage = () => { return ( diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/demos.mdx index b0c29375455..d24ba498c9c 100644 --- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/demos.mdx +++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/demos.mdx @@ -74,6 +74,10 @@ import * as Examples from './Examples' +### Allow Negative + + + ### Widths