diff --git a/packages/ui-library/src/components/internal-components/counter/index.stories.ts b/packages/ui-library/src/components/internal-components/counter/index.stories.ts
index f779796f1..e03be00f6 100644
--- a/packages/ui-library/src/components/internal-components/counter/index.stories.ts
+++ b/packages/ui-library/src/components/internal-components/counter/index.stories.ts
@@ -1,23 +1,67 @@
/* eslint-disable no-console */
import { Themes } from '../../../foundation/_tokens-generated/index.themes';
import { CounterVariants, FormSizes } from '../../../globals/constants';
+import { html } from 'lit-html';
import { BlrCounterType } from './index';
import { BlrCounterRenderFunction } from './renderFunction';
+// Shared Style inside the Stories
+const sharedStyles = html`
+
+`;
+
export default {
title: 'Design System/Web Components/Internal Components/Counter',
argTypes: {
+ theme: {
+ options: Themes,
+ control: { type: 'select' },
+ table: {
+ category: 'Appearance',
+ },
+ },
variant: {
+ description: 'Choose variant of the component.',
options: CounterVariants,
- control: { type: 'select' },
+ control: { type: 'radio' },
+ table: {
+ category: 'Appearance',
+ },
},
size: {
+ name: 'sizeVariant',
+ description: 'Choose size of the component.',
options: FormSizes,
- control: { type: 'select' },
+ control: { type: 'radio' },
+ table: {
+ category: 'Appearance',
+ },
},
- theme: {
- options: Themes,
- control: { type: 'select' },
+ current: {
+ name: 'value',
+ description: 'Enter the value the component should hold.',
+ table: {
+ category: 'Content / Settings',
+ },
+ },
+ max: {
+ name: 'maxValue',
+ description: 'Enter the max value the component should be able to hold.',
+ table: {
+ category: 'Content / Settings',
+ },
+ },
+ arialabel: {
+ name: 'ariaLabel',
+ description:
+ 'Provides additional information about the elements purpose and functionality to assistive technologies, such as screen readers.',
+ table: {
+ disable: true,
+ },
},
},
parameters: {
@@ -26,19 +70,76 @@ export default {
url: 'https://www.figma.com/file/C4vgEKz8mKyulJ4gm3Qdql/%F0%9F%AB%A7-%5BBLR%5D-The-B01LER?node-id=3618%3A126743&mode=dev',
},
viewMode: 'docs',
+ layout: 'centered',
+ docs: {
+ description: {
+ component: `