It is not the button.
import streamlit as st
st.title("[Semantic UI CSS](https://semantic-ui.com/)")
st.caption('A live demo')
if st.checkbox(label="Apply Semantic UI CSS"):
st.markdown(
'<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">',
unsafe_allow_html=True
)