Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/@react-spectrum/s2/src/TextField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const TextArea = forwardRef(function TextArea(props: TextAreaProps, ref:
{...props}
ref={ref}
fieldGroupCss={style({
alignItems: 'baseline',
alignItems: 'start',
height: 'auto'
})}>
<TextAreaInput />
Expand Down
21 changes: 21 additions & 0 deletions packages/@react-spectrum/s2/stories/TextField.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,27 @@ export const TextAreaExample: StoryTextArea = {
}
};

export const TextAreaContextualHelpExample: StoryTextArea = {
render: (args) => (
<TextArea
{...args}
contextualHelp={
<ContextualHelp>
<Heading>Share your thoughts!</Heading>
<Content>
<Text>
Your comment will be visible to other users.
</Text>
</Content>
</ContextualHelp>
} />
),
args: {
label: 'Comment',
placeholder: 'Enter a comment'
}
};

export const CustomWidth: StoryTextField = {
render: (args) => <TextField {...args} styles={style({width: 384})} />,
args: {
Expand Down
Loading