@@ -168,9 +168,9 @@ def __init__(
168168 """Create a Button widget.
169169
170170 Args:
171- label (str): The text that appears within the button.
172- disabled (bool): Whether the button is disabled or not.
173- variant (ButtonVariant): The variant of the button.
171+ label (str, optional ): The text that appears within the button.
172+ disabled (bool, optional ): Whether the button is disabled or not.
173+ variant (ButtonVariant, optional ): The variant of the button.
174174 name (str | None, optional): The name of the button.
175175 id (str | None, optional): The ID of the button in the DOM.
176176 classes (str | None, optional): The CSS classes of the button.
@@ -267,8 +267,8 @@ def success(
267267 """Utility constructor for creating a success Button variant.
268268
269269 Args:
270- label (str): The text that appears within the button.
271- disabled (bool): Whether the button is disabled or not.
270+ label (str, optional ): The text that appears within the button.
271+ disabled (bool, optional ): Whether the button is disabled or not.
272272 name (str | None, optional): The name of the button.
273273 id (str | None, optional): The ID of the button in the DOM.
274274 classes(str | None, optional): The CSS classes of the button.
@@ -298,8 +298,8 @@ def warning(
298298 """Utility constructor for creating a warning Button variant.
299299
300300 Args:
301- label (str): The text that appears within the button.
302- disabled (bool): Whether the button is disabled or not.
301+ label (str, optional ): The text that appears within the button.
302+ disabled (bool, optional ): Whether the button is disabled or not.
303303 name (str | None, optional): The name of the button.
304304 id (str | None, optional): The ID of the button in the DOM.
305305 classes (str | None, optional): The CSS classes of the button.
@@ -329,8 +329,8 @@ def error(
329329 """Utility constructor for creating an error Button variant.
330330
331331 Args:
332- label (str): The text that appears within the button.
333- disabled (bool): Whether the button is disabled or not.
332+ label (str, optional ): The text that appears within the button.
333+ disabled (bool, optional ): Whether the button is disabled or not.
334334 name (str | None, optional): The name of the button.
335335 id (str | None, optional): The ID of the button in the DOM.
336336 classes (str | None, optional): The CSS classes of the button.
0 commit comments