# st.column_config.ButtonColumn

Source: https://docs.streamlit.io/develop/api-reference/data/st.column_config/st.column_config.buttoncolumn

* Function signature:

   ```python
   st.column_config.ButtonColumn(label=None, *, width=None, help=None, pinned=None, alignment=None, type="secondary", on_click=None, args=None, kwargs=None, key=None)
   ```

* Parameters:

   | name | type | default | description |
   |---|---|---|---|
   | label | str or None |  | The label shown at the top of the column. If this is None (default), the column name is used. |
   | width | "small", "medium", "large", int, or None |  | The display width of the column. If this is None (default), the column will be sized to fit the cell contents. Otherwise, this can be one of the following:  "small": 75px wide "medium": 200px wide "large": 400px wide An integer specifying the width in pixels  If the total width of all columns is less than the width of the dataframe, the remaining space will be distributed evenly among all columns. |
   | help | str or None |  | A tooltip that gets displayed when hovering over the column label. If this is None (default), no tooltip is displayed. The tooltip can optionally contain GitHub-flavored Markdown, including the Markdown directives described in the body parameter of st.markdown. |
   | pinned | bool or None |  | Whether the column is pinned. A pinned column will stay visible on the left side no matter where the user scrolls. If this is None (default), Streamlit will decide: index columns are pinned, and data columns are not pinned. |
   | alignment | "left", "center", "right", or None |  | The horizontal alignment of the button within the cell. If this is None (default), buttons are centered. |
   | type | "primary", "secondary", or "tertiary" |  | An optional string that specifies the button type. This can be one of the following:  "primary": The button's background is the app's primary color for additional emphasis. "secondary" (default): The button's background coordinates with the app's background color for normal emphasis. "tertiary": The button is plain text without a border or background for subtlety. |
   | on_click | callable or None |  | An optional callback invoked when a button is clicked. By default, the callback receives no arguments. Use args and kwargs to pass extra arguments. The click information is also available in st.session_state[key] during the callback. |
   | args | tuple or None |  | An optional tuple of args to pass to the callback. |
   | kwargs | dict or None |  | An optional dict of kwargs to pass to the callback. |
   | key | str or None |  | A session state key for the click trigger value. When a button is clicked, the click information is stored under this key in Session State as a ButtonColumnClickState object with row (int) and label (str) entries that support both key and attribute notation. For example, if key="my_click", you can access the clicked row with st.session_state.my_click.row or st.session_state["my_click"]["row"]. The value is only present during the rerun triggered by the click; it resets to None on subsequent reruns. To use ButtonColumnClickState in an annotation, import it from streamlit.typing. key is required to enable button clicks and callbacks. |

* Function signature:

   ```python
   ButtonColumnClickState
   ```
