Small button with single emoji as text, fits inside gradio forms
| 10 | |
| 11 | |
| 12 | class ToolButton(FormComponent, gr.Button): |
| 13 | """Small button with single emoji as text, fits inside gradio forms""" |
| 14 | |
| 15 | def __init__(self, *args, **kwargs): |
| 16 | classes = kwargs.pop("elem_classes", []) |
| 17 | super().__init__(*args, elem_classes=["tool", *classes], **kwargs) |
| 18 | |
| 19 | def get_block_name(self): |
| 20 | return "button" |
| 21 | |
| 22 | |
| 23 | class ResizeHandleRow(gr.Row): |
no outgoing calls
no test coverage detected