import React from 'react' import { withKnobs, object } from '../../../storybook/node_modules/@storybook/addon-knobs/dist' import { ValueGroup, Box, CardTitle, Text } from '../..' import StoryWrapper from '../../utils/story-wrapper' export default { title: 'DesignSystem/Molecules/ValueGroup', decorators: [withKnobs], argTypes: { onClick: { action: 'clicked' }, }, } export const Default: React.FC = ({ onClick }) => { const handleClick = (event) => { event.preventDefault() onClick(event) } const objects = object('objects', [{ label: 'First Name', onClick: handleClick, value: 'Wojtek', }, { label: 'Last Name', onClick: handleClick, value: 'Krysiak', }]) return ( {objects.map((field) => ( ))} With children which are wrapped with CardTitle

I am header

And I am content

) }