File size: 1,858 Bytes
f79083c
 
8628863
d810a7a
8628863
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0ab92fa
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import gradio as gr

icon = "https://cdn.icon-icons.com/icons2/2620/PNG/512/among_us_player_red_icon_156942.png"
with gr.Blocks() as demo:
   with gr.Row():
      gr.Button(variant="primary")
      gr.Button(variant="secondary")
      gr.Button(variant="stop")
   with gr.Row():
      gr.Button(variant="primary", size="sm")
      gr.Button(variant="secondary", size="sm")
      gr.Button(variant="stop", size="sm")
   with gr.Row():
      gr.Button(variant="primary", icon=icon)
      gr.Button(variant="secondary", icon=icon)
      gr.Button(variant="stop", icon=icon)

   with gr.Row():
      gr.Button(variant="primary", size="sm", icon=icon)
      gr.Button(variant="secondary", size="sm", icon=icon)
      gr.Button(variant="stop", size="sm", icon=icon)

   with gr.Row():
      gr.Button(variant="primary", icon=icon, interactive=False)
      gr.Button(variant="secondary", icon=icon, interactive=False)
      gr.Button(variant="stop", icon=icon, interactive=False)

   with gr.Row():
      gr.Button(variant="primary", size="sm", icon=icon, interactive=False)
      gr.Button(variant="secondary", size="sm", icon=icon, interactive=False)
      gr.Button(variant="stop", size="sm", icon=icon, interactive=False)

   with gr.Row():
      gr.Button(variant="primary", interactive=False)
      gr.Button(variant="secondary", interactive=False)
      gr.Button(variant="stop", interactive=False)

   with gr.Row():
      gr.Button(variant="primary", size="sm",  interactive=False)
      gr.Button(variant="secondary", size="sm", interactive=False)
      gr.Button(variant="stop", size="sm", interactive=False)

   with gr.Group():
      gr.Button(variant="primary")
      gr.Button(variant="primary")
      gr.Button(variant="secondary")
      gr.Button(variant="secondary")
      gr.Button(variant="stop")
      gr.Button(variant="stop")


demo.launch()