MCPcopy Create free account
hub / github.com/Hrishikesh332/dev-ai / create_suggestion_button

Function create_suggestion_button

app.py:181–202  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

179
180
181def create_suggestion_button(text):
182 return f"""
183 <button
184 onclick="document.getElementsByTagName('textarea')[0].value='{text}';
185 document.getElementsByTagName('textarea')[0].focus();"
186 style="
187 background: transparent;
188 border: 1px solid #81E831;
189 color: #81E831;
190 padding: 8px 16px;
191 margin: 5px;
192 border-radius: 20px;
193 cursor: pointer;
194 font-size: 0.9em;
195 transition: all 0.3s ease;
196 "
197 onmouseover="this.style.background='#81E831'; this.style.color='white';"
198 onmouseout="this.style.background='transparent'; this.style.color='#81E831';"
199 >
200 {text}
201 </button>
202 """
203
204def render_suggestions():
205 st.markdown("### Try asking about:")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected