@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 +4 -3
- package/dist/src/components/Button/Button.d.ts +10 -1
- package/package.json +1 -1
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
|
-
|
|
78
|
-
|
|
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
|
|
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
|