You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: components/button/readme.md
+17-17
Original file line number
Diff line number
Diff line change
@@ -32,24 +32,24 @@ const TestButtons = () => (
32
32
33
33
## Properties
34
34
35
-
| Name | Type | Default | Description|
35
+
| Name | Type | Default | Description|
36
36
|:-----|:-----|:-----|:-----|
37
-
|`accent`|`Boolean`|`false`| Indicates if the button should have accent color.|
38
-
|`className`|`String`|`''`| Set a class to style the Component.|
39
-
|`disabled`|`Boolean`|`false`| If true, component will be disabled.|
40
-
|`flat`|`Boolean`|`false`| If true, the button will have a flat look. |
41
-
|`floating`|`Boolean`|`false`| If true, the button will have a floating look. |
42
-
|`href`|`String`|| Creates a link for the button. |
43
-
|`icon`|`Any`|| Value of the icon (See Font Icon Component). |
44
-
|`inverse`|`Boolean`|| If true, the neutral colors are inverted. Useful to put a button over a dark background. |
45
-
|`label`|`String`|| The text string to use for the name of the button.|
46
-
|`mini`|`Boolean`|`false`| To be used with floating button. If true, the button will be smaller.|
47
-
|`neutral`|`Boolean`|`true`| Set it to `false` if you don't want the neutral styles to be included.|
48
-
|`onMouseLeave`|`Function`|| Fires after the mouse leaves the Component.|
49
-
|`onMouseUp`|`Function`|| Fires after the mouse is released from the Component.|
50
-
|`primary`|`Boolean`|`false`| Indicates if the button should have primary color.|
51
-
|`raised`|`Boolean`|`false`| If true, the button will have a raised look. |
52
-
|`ripple`|`Boolean`|`true`| If true, component will have a ripple effect on click.|
37
+
|`accent`|`Boolean`|`false`| Indicates if the button should have accent color.|
38
+
|`className`|`String`|`''`| Set a class to style the Component.|
39
+
|`disabled`|`Boolean`|`false`| If true, component will be disabled.|
40
+
|`flat`|`Boolean`|`false`| If true, the button will have a flat look. |
41
+
|`floating`|`Boolean`|`false`| If true, the button will have a floating look. |
42
+
|`href`|`String`|| Creates a link for the button. |
43
+
|`icon`|`String` or `Element`|| Value of the icon (See Font Icon Component). |
44
+
|`inverse`|`Boolean`|| If true, the neutral colors are inverted. Useful to put a button over a dark background. |
45
+
|`label`|`String`|| The text string to use for the name of the button.|
46
+
|`mini`|`Boolean`|`false`| To be used with floating button. If true, the button will be smaller.|
47
+
|`neutral`|`Boolean`|`true`| Set it to `false` if you don't want the neutral styles to be included.|
48
+
|`onMouseLeave`|`Function`|| Fires after the mouse leaves the Component.|
49
+
|`onMouseUp`|`Function`|| Fires after the mouse is released from the Component.|
50
+
|`primary`|`Boolean`|`false`| Indicates if the button should have primary color.|
51
+
|`raised`|`Boolean`|`false`| If true, the button will have a raised look. |
52
+
|`ripple`|`Boolean`|`true`| If true, component will have a ripple effect on click.|
53
53
54
54
By default it will have neutral colors and a flat aspect even though the `flat` property is `false` by default. Also, some properties exclude others, for example a button cannot be `flat` and `raised` at the same time.
Copy file name to clipboardexpand all lines: components/menu/readme.md
+20-20
Original file line number
Diff line number
Diff line change
@@ -45,33 +45,33 @@ The menu has state to keep a value with the currently selected item. It also exp
45
45
46
46
As the most usual scenario will be to open the menu from a click in an Icon, we provide this subcomponent implementing this behavior. The `IconMenu` shows an icon and implements a `Menu` under the covers that is shown when is clicked. Some of its properties are transferred to the menu, others to the children:
47
47
48
-
| Name | Type | Default | Description|
48
+
| Name | Type | Default | Description|
49
49
|:-----|:-----|:-----|:-----|
50
-
|`className`|`String`|`''`| Set a class to give custom styles to the icon wrapper.|
51
-
|`icon`|`Any`|`more_vert`| Icon font key string or Element to display the opener icon. |
52
-
|`iconRipple`|`Boolean`|`true`| If true, the icon will show a ripple when is clicked. |
53
-
|`menuRipple`|`Boolean`|`true`| Transferred to the `Menu` component. |
54
-
|`onClick`|`Function`|| Callback that will be called when the icon is clicked. |
55
-
|`onHide`|`Function`|| Callback that will be called when the menu is being hidden. |
56
-
|`onSelect`|`Function`|| Callback that will be invoked when a menu item is selected. |
57
-
|`onShow`|`Function`|| Callback that will be invoked when the menu is being shown. |
58
-
|`position`|`String`|`auto`| Determines the position of the menu. This property is transferred to the inner `Menu` component. |
59
-
|`selectable`|`Boolean`|`false`| If true, the menu will keep a value to highlight the active child item. |
60
-
|`selected`|`Any`|| Used for selectable menus. Indicates the current selected value so the child item with this value can be highlighted. |
50
+
|`className`|`String`|`''`| Set a class to give custom styles to the icon wrapper.|
51
+
|`icon`|`String` or `Element`|`more_vert`| Icon font key string or Element to display the opener icon. |
52
+
|`iconRipple`|`Boolean`|`true`| If true, the icon will show a ripple when is clicked. |
53
+
|`menuRipple`|`Boolean`|`true`| Transferred to the `Menu` component. |
54
+
|`onClick`|`Function`|| Callback that will be called when the icon is clicked. |
55
+
|`onHide`|`Function`|| Callback that will be called when the menu is being hidden. |
56
+
|`onSelect`|`Function`|| Callback that will be invoked when a menu item is selected. |
57
+
|`onShow`|`Function`|| Callback that will be invoked when the menu is being shown. |
58
+
|`position`|`String`|`auto`| Determines the position of the menu. This property is transferred to the inner `Menu` component. |
59
+
|`selectable`|`Boolean`|`false`| If true, the menu will keep a value to highlight the active child item. |
60
+
|`selected`|`Any`|| Used for selectable menus. Indicates the current selected value so the child item with this value can be highlighted. |
61
61
62
62
## Menu Item
63
63
64
64
The inner component for menus and describes the content of each option. It behaves in a similar way to List Items but simpler.
65
65
66
-
| Name | Type | Default | Description|
66
+
| Name | Type | Default| Description|
67
67
|:-----|:-----|:-----|:-----|
68
-
|`caption`|`String`|| The text to include in the menu item. Required.|
69
-
|`className`|`String`|`''`| Set a class to give custom styles to the item.|
70
-
|`disabled`|`Boolean`|`false`| If true, the item will be displayed as disabled and is not selectable.|
71
-
|`icon`|`Any`|| Icon font key string or Element to display in the right side of the option. |
72
-
|`onClick`|`Function`|| Callback that will be called when Component is clicked. |
73
-
|`selected`|`Boolean`|`false`| Transferred from the `Menu` component for selectable menus. Indicates if it's the current active option. |
74
-
|`shortcut`|`String`|`''`| Displays shortcut text on the right side of the `caption` attribute. |
68
+
|`caption`|`String`|| The text to include in the menu item. Required.|
69
+
|`className`|`String`|`''`| Set a class to give custom styles to the item.|
70
+
|`disabled`|`Boolean`|`false`| If true, the item will be displayed as disabled and is not selectable.|
71
+
|`icon`|`String` or `Element`|| Icon font key string or Element to display in the right side of the option. |
72
+
|`onClick`|`Function`|| Callback that will be called when Component is clicked. |
73
+
|`selected`|`Boolean`|`false`| Transferred from the `Menu` component for selectable menus. Indicates if it's the current active option. |
74
+
|`shortcut`|`String`|`''`| Displays shortcut text on the right side of the `caption` attribute. |
0 commit comments