@epam/ai-dial-ui-kit 0.6.0-rc.3 → 0.6.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -73,9 +73,10 @@ import '@epam/ai-dial-ui-kit/styles.css';
73
73
  function App() {
74
74
  return (
75
75
  <div>
76
- <DialButton
77
- className="dial-primary-button"
78
- onClick={() => alert('Hello AI DIAL!')}
76
+ <DialButton
77
+ label="Click me"
78
+ variant={ButtonVariant.Primary}
79
+ onClick={() => console.log("Next.js + AI DIAL UI Kit!")}
79
80
  />
80
81
  </div>
81
82
  );
@@ -21,9 +21,18 @@ export interface DialButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<
21
21
  * />
22
22
  * ```
23
23
  *
24
+ * @example
25
+ * ```tsx
26
+ * <DialButton
27
+ * label={<span>Custom <strong>Label</strong></span>}
28
+ * aria-label="Custom Label"
29
+ * onClick={handleClick}
30
+ * />
31
+ * ```
32
+ *
24
33
  * inherits all properties from the `ButtonHTMLAttributes<HTMLButtonElement>`
25
34
  *
26
- * @param [label] - The text content of the button
35
+ * @param [label] - The content of the button. Can be any React node.
27
36
  * @param [variant=ButtonVariant.Primary] - Defines the visual style of the button
28
37
  * @param [textClassName] - Additional CSS classes to apply specifically to the button text
29
38
  * @param [iconAfter] - Icon or element to display after the button text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.6.0-rc.3",
3
+ "version": "0.6.0-rc.4",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",