Skip to content

Commit

Permalink
fix(page-heading): added intro text demo
Browse files Browse the repository at this point in the history
  • Loading branch information
QuintonJason authored and ju-Skinner committed May 11, 2022
1 parent fbf0a50 commit 585e72b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ PageHeading.propTypes = {
breadcrumbs: PropTypes.arrayOf(Breadcrumbs.itemPropTypes),
children: PropTypes.node.isRequired,
className: PropTypes.string,
help: PropTypes.arrayOf(PropTypes.node),
help: PropTypes.node,
image: PropTypes.shape({
alt: PropTypes.string,
src: PropTypes.string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ PageHeadingWithHelpLink.args = {
)
};

export const PageHeadingWithIntro = Template.bind({});
PageHeadingWithIntro.args = {
introText: 'Intro - Lorem ipsum, dolor sit amet consectetur adipisicing elit.'
};

export const PageHeadingWithThumbnail = Template.bind({});
PageHeadingWithThumbnail.args = {
image: {
Expand Down Expand Up @@ -92,6 +97,7 @@ PageHeadingWithToolbarAndSecondaryText.args = {
export const AllItems = Template.bind({});
AllItems.args = {
secondaryText: 'Secondary text here',
introText: 'Intro - Lorem ipsum, dolor sit amet consectetur adipisicing elit.',
breadcrumbs: [
{
label: 'Back somewhere',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ PageHeading.propTypes = {
breadcrumbs: PropTypes.arrayOf(Breadcrumbs.itemPropTypes),
children: PropTypes.node.isRequired,
className: PropTypes.string,
help: PropTypes.arrayOf(PropTypes.node),
help: PropTypes.node,
image: PropTypes.shape({
alt: PropTypes.string,
src: PropTypes.string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ PageHeadingWithHelpLink.args = {
)
};

export const PageHeadingWithIntro = Template.bind({});
PageHeadingWithIntro.args = {
introText: 'Intro - Lorem ipsum, dolor sit amet consectetur adipisicing elit.'
};

export const PageHeadingWithThumbnail = Template.bind({});
PageHeadingWithThumbnail.args = {
image: {
Expand Down Expand Up @@ -91,6 +96,7 @@ PageHeadingWithToolbarAndSecondaryText.args = {

export const AllItems = Template.bind({});
AllItems.args = {
introText: 'Intro - Lorem ipsum, dolor sit amet consectetur adipisicing elit.',
secondaryText: 'Secondary text here',
breadcrumbs: [
{
Expand Down

0 comments on commit 585e72b

Please sign in to comment.