Capgemini / dcx-react-library

React Library UI/UX agnostic
https://main--6069a6f47f4b9f002171f8e1.chromatic.com
MIT License
107 stars 7 forks source link

Button - enhancement to allow pass extra content #576

Closed AlaaEddine20 closed 7 months ago

daniele-zurico commented 7 months ago

In the stories/Button/ClassBased.stories.js is good to have as well documented... something easy that maybe will make the label bold:


/**
* button allow to pass a simple value or if needed a custom one as children property
*/
export const CustomContent = {
  args: {
    label: 'Button',
    children: [
      <strong>login</strong>,
    ],
  },
};
and the same thing in the `design system section`
AlaaEddine20 commented 7 months ago

In the stories/Button/ClassBased.stories.js is good to have as well documented... something easy that maybe will make the label bold:

/**
* button allow to pass a simple value or if needed a custom one as children property
*/
export const CustomContent = {
  args: {
    label: 'Button',
    children: [
      <strong>login</strong>,
    ],
  },
};
and the same thing in the `design system section`

In design-system there is not ClassBased.stories, in which file?