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