Skip to content

Commit

Permalink
docs(picker): add wrapping side label to sb
Browse files Browse the repository at this point in the history
  • Loading branch information
jenndiaz authored and pfulton committed Feb 7, 2024
1 parent 5d4cc47 commit 2684376
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
23 changes: 23 additions & 0 deletions components/picker/stories/picker.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,17 @@ const ChromaticPickerGroup = ({
placeholder: "Select Your State Or Province"
})}
</div>
<div>
${Template({
labelPosition: "left",
...args,
isOpen: false,
withSwitch: true,
fieldLabelStyle: {'max-width': '90px'},
label: "Enter country, text should wrap",
placeholder: "Select Your State Or Province"
})}
</div>
<div>
${Template({
labelPosition: "left",
Expand All @@ -208,6 +219,18 @@ const ChromaticPickerGroup = ({
isQuiet: true,
})}
</div>
<div>
${Template({
labelPosition: "left",
...args,
isOpen: false,
withSwitch: true,
isQuiet: true,
fieldLabelStyle: {'max-width': '90px'},
label: "Enter country, text should wrap",
placeholder: "Select Your State Or Province"
})}
</div>
</div>
`;
};
Expand Down
3 changes: 3 additions & 0 deletions components/picker/stories/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ export const Template = ({
isDisabled = false,
isReadOnly = false,
withSwitch = false,
fieldLabelStyle = {},
fieldLabelText,
customClasses = [],
customStyles = {},
customPopoverStyles = {},
Expand Down Expand Up @@ -144,6 +146,7 @@ export const Template = ({
size,
label,
isDisabled,
style: fieldLabelStyle,
alignment: labelPosition,
})
: ""}
Expand Down

0 comments on commit 2684376

Please sign in to comment.