-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(TextInput): Added isStartTruncted prop and deprecated isLeftTrun…
…cted prop (#9610) * feat(TextInput): Added isStartTruncte prop and depreated isLeftTruncated prop * Updated prop in demo app
- Loading branch information
Showing
6 changed files
with
35 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...Input/examples/TextInputLeftTruncated.tsx → ...nput/examples/TextInputStartTruncated.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import React from 'react'; | ||
import { TextInput } from '@patternfly/react-core'; | ||
|
||
export const LeftTruncatedTextInput: React.FunctionComponent = () => { | ||
export const StartTruncatedTextInput: React.FunctionComponent = () => { | ||
const [value, setValue] = React.useState( | ||
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.' | ||
); | ||
return ( | ||
<TextInput | ||
isLeftTruncated | ||
isStartTruncated | ||
value={value} | ||
type="text" | ||
onChange={(_event, value) => setValue(value)} | ||
aria-label="left-truncated text input example" | ||
aria-label="start-truncated text input example" | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters