playbook_ui_docs 14.9.0.pre.rc.11 → 14.9.0.pre.rc.12
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: 620213d92b80a906e5436ed5881c7201a397118f6de565fd237d6ef450bfae2f
|
4
|
+
data.tar.gz: 2dbc1cf0899c8a136bf7c3e388fd325b3b11305e26ce17677aa98a4a6efb2208
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20439e47e6914ccd0011b5955b4aadd9f7aa9d1548280fd1355250a816fc75415b1dc6b43aa36f83830869b13d5ecf7989e4bac88fee70077bedd5a15242fc95
|
7
|
+
data.tar.gz: 37f331dd9cf9cb7bc1dd340d9910f079f0e143995cd778e5b50148d4248c5cabc2d7a3bc298ae367ca195518317915f48027b6abd2609abb0fa0a1c79f2d364c
|
@@ -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.
|