Skip to content

Commit 5aae727

Browse files
committed
fixes
1 parent ea67114 commit 5aae727

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1818
- editor is focused on load if `autoFocus` prop is set to `true`
1919
- implemented support for `disabled` state in code editor
2020
- implemented support for `intent` states in code editor
21+
- `Label` component
22+
- added `additionalElements` property to display elements at the end of the label
2123

2224
## [24.0.1] - 2025-02-06
2325

src/components/Label/Label.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import { loremIpsum } from "react-lorem-ipsum";
33
import { Meta, StoryFn } from "@storybook/react";
44

5-
import { Label } from "../../index";
5+
import { Icon, Label } from "../../index";
66

77
export default {
88
title: "Forms/Label",
@@ -19,4 +19,5 @@ Default.args = {
1919
tooltip: loremIpsum({ p: 1, avgSentencesPerParagraph: 2, startWithLoremIpsum: false, random: false }).toString(),
2020
disabled: false,
2121
htmlFor: "inputid",
22+
additionalElements: <Icon name={"state-warning"} tooltipText={"message"} small />,
2223
};

src/components/PropertyValuePair/stories/PropertyName.stories.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import { loremIpsum } from "react-lorem-ipsum";
33
import { Meta, StoryFn } from "@storybook/react";
44

5-
import { Icon, PropertyName } from "../../../index";
5+
import { PropertyName } from "../../../index";
66

77
export default {
88
title: "Components/PropertyValuePair/Name",
@@ -15,7 +15,4 @@ const Template: StoryFn<typeof PropertyName> = (args) => <PropertyName {...args}
1515
export const Default = Template.bind({});
1616
Default.args = {
1717
children: loremIpsum({ p: 1, avgSentencesPerParagraph: 1, avgWordsPerSentence: 4, random: false }).toString(),
18-
labelProps: {
19-
additionalElements: <Icon name={"state-warning"} tooltipText={"message"} small />,
20-
},
2118
};

0 commit comments

Comments
 (0)