Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added label to textareascroll example. #1540

Merged
merged 5 commits into from
Sep 1, 2023
Merged
Changes from 3 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
5 changes: 3 additions & 2 deletions examples/Textarea.scroll.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
import * as React from 'react';
import { Textarea } from '@itwin/itwinui-react';
import { LabeledTextarea } from '@itwin/itwinui-react';

export default () => {
const [value, setValue] = React.useState(
'If the area is shrunk to a size smaller than the amount of text within, a scrollbar appears to keep navigation possible. This behavior is especially important for textarea without a resizing handle, to avoid making text editing tedious.',
);

return (
<Textarea
<LabeledTextarea
label='textarea-scroll'
r100-stack marked this conversation as resolved.
Show resolved Hide resolved
id='text-area'
value={value}
onChange={(event) => setValue(event.target.value)}
Expand Down
Loading