ZIm/crates/ui2/src/components
Marshall Bowers 393be3cedf
Extract Tab component (#3539)
This PR extracts a new `Tab` component from the tabs implementation in
the workspace.

This will allow us to reuse this component anywhere that we need to use
tabs.

Like our other newer components, the `Tab` component has a relatively
open API.

It accepts `children` (or `child`) as well as a `start_slot` and
`end_slot` to position content in the slots on either end of the
content. These slots also respect the `TabCloseSide` and will switch
positions based on this value.

<img width="763" alt="Screenshot 2023-12-07 at 12 19 42 PM"
src="https://github.com/zed-industries/zed/assets/1486634/78e4db6a-f807-431e-8777-f52f2631e6ed">

Release Notes:

- N/A
2023-12-07 12:30:43 -05:00
..
button Always show tooltips on buttons (#3521) 2023-12-06 16:29:35 -05:00
label Factor out LabelLike to share common label styles (#3510) 2023-12-06 11:17:12 -05:00
list Start bringing back the current call section of the collab panel 2023-12-04 15:46:56 -08:00
stories Extract Tab component (#3539) 2023-12-07 12:30:43 -05:00
avatar.rs Merge remote-tracking branch 'origin/main' into surfaces 2023-11-30 10:48:20 +01:00
button.rs Add support for optional icon to Button (#3479) 2023-12-01 14:30:38 -05:00
checkbox.rs ui2: Reference theme2 and settings2 crates without the 2 (#3424) 2023-11-28 15:30:29 -05:00
context_menu.rs Fix project panel context menu 2023-12-05 00:41:00 +00:00
disclosure.rs Add new Button and IconButton components (#3448) 2023-11-29 17:41:44 -05:00
divider.rs ui2: Unsuppress and fix warnings (#3423) 2023-11-28 14:44:19 -05:00
icon.rs Merge remote-tracking branch 'origin/main' into assistant-2 2023-12-06 18:18:58 +01:00
indicator.rs Update tabs rendering, fix tab spacing bug 2023-12-05 14:04:12 -05:00
keybinding.rs Use when_else() 2023-12-06 22:34:28 -05:00
label.rs Factor out LabelLike to share common label styles (#3510) 2023-12-06 11:17:12 -05:00
list.rs Rework ListHeader to be more open (#3467) 2023-11-30 15:55:31 -05:00
popover.rs ui2: Reference theme2 and settings2 crates without the 2 (#3424) 2023-11-28 15:30:29 -05:00
popover_menu.rs Flesh out a popover control 2023-11-30 16:13:44 -07:00
right_click_menu.rs Rename menu_handle to right_click_menu and child to trigger 2023-11-30 16:39:43 -07:00
stack.rs WIP 2023-11-20 14:46:01 -08:00
stories.rs Extract Tab component (#3539) 2023-12-07 12:30:43 -05:00
tab.rs Extract Tab component (#3539) 2023-12-07 12:30:43 -05:00
tooltip.rs Add gap between label and keybinding in Tooltip 2023-12-06 15:45:03 -05:00