Skip to content

Commit

Permalink
Merge pull request #107 from perimetre/10.2.0
Browse files Browse the repository at this point in the history
feat: added jsx labels to text inputs
  • Loading branch information
AssisrMatheus authored Apr 18, 2023
2 parents c4c7a07 + 03740ff commit 531b805
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

## [10.2.0] 2023-04-18

### Changes

- Added option to use JSX as label text of `TextInput`
- Added option to use JSX as label text of `TextAreaInput`

## [10.1.0] 2023-04-17

### Added
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@perimetre/ui",
"description": "A component library made by @perimetre",
"version": "10.1.0",
"version": "10.2.0",
"repository": {
"type": "git",
"url": "git+https://github.com/perimetre/ui.git"
Expand Down Expand Up @@ -161,4 +161,4 @@
"resolutions": {
"@storybook/react/webpack": "^5"
}
}
}
2 changes: 1 addition & 1 deletion src/components/TextInput/TextAreaInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type TextAreaInputProps = React.DetailedHTMLProps<
/**
* If provided, displays a label above the input
*/
label?: string;
label?: React.ReactNode;
/**
* If provided, displays a help text under the input
*/
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextInput/TextInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export type TextInputProps = React.DetailedHTMLProps<React.InputHTMLAttributes<H
/**
* If provided, displays a label above the input
*/
label?: string;
label?: React.ReactNode;
/**
* If provided, displays a help text under the input
*/
Expand Down

0 comments on commit 531b805

Please sign in to comment.