use gpui::Corners; use gpui::InteractiveElement; use gpui::ParentElement; use gpui::{App, Axis, Edges, ElementId, IntoElement, Window}; use gpui::{ RenderOnce, StatefulInteractiveElement as _, StyleRefinement, Styled, div, prelude::FluentBuilder as _, }; use std::{cell::Cell, rc::Rc}; use crate::{ Disableable, Sizable, Size, StyledExt, button::{Button, ButtonVariant, ButtonVariants}, }; /// A ButtonGroup element, to wrap multiple buttons in a group. #[derive(IntoElement)] pub struct ButtonGroup { id: ElementId, style: StyleRefinement, children: Vec