playbook_ui_docs 14.9.0.pre.rc.11 → 14.9.0.pre.rc.13
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0ca9a1f03aeda74d1aa9e6c67fe9211a3afee203f63d6ec938d2f54e45aa733
|
4
|
+
data.tar.gz: e406a8127b4e0a104a98f999ab839dacd5b588dce2fa149c420f90207eadd945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f81bf349b1ea54c6a11efae3fe4337a1262e6d79963e2ef87756c9b5662c1a9710a070f504cdc0d864c5488acef0223916d1ad798fd82427b0494fa58254910
|
7
|
+
data.tar.gz: 3a2d2231b62f9f713fd04e9444d27b4b566cccd266f7a240b88e8b5f18aafbe5fdbe7004861a2706b24cdd4dd52e1ec604bfb17a9d3066aa154383205ef95e90
|
@@ -2,4 +2,5 @@
|
|
2
2
|
<%= pb_rails("button", props: { text: "Button Secondary", variant: "secondary", margin_right: "lg" }) %>
|
3
3
|
<%= pb_rails("button", props: { text: "Button Link", variant: "link", margin_right: "lg" }) %>
|
4
4
|
<%= pb_rails("button", props: { text: "Button Disabled", disabled: true, margin_right: "lg" }) %>
|
5
|
+
<%= pb_rails("button", props: { text: "Button Danger", variant: "danger", margin_right: "lg" }) %>
|
5
6
|
|
@@ -34,6 +34,14 @@ const ButtonDefault = (props) => (
|
|
34
34
|
text='Button Disabled'
|
35
35
|
{...props}
|
36
36
|
/>
|
37
|
+
<Button
|
38
|
+
marginRight='lg'
|
39
|
+
onClick={() => alert("button clicked!")}
|
40
|
+
tabIndex={0}
|
41
|
+
text='Button Danger'
|
42
|
+
variant='danger'
|
43
|
+
{...props}
|
44
|
+
/>
|
37
45
|
</div>
|
38
46
|
)
|
39
47
|
|
@@ -1 +1 @@
|
|
1
|
-
The primary button is used for the most important button on the page. Secondary buttons can be used for actions that are less important. Button links can be helpful for buttons that do not need a lot of attention drawn to them. Disabled buttons are used when you don't want the user to click the button.
|
1
|
+
The primary button is used for the most important button on the page. Secondary buttons can be used for actions that are less important. Button links can be helpful for buttons that do not need a lot of attention drawn to them. Disabled buttons are used when you don't want the user to click the button. Danger buttons are used to indicate destructive actions such as deleting.
|