ZIm/crates/storybook2/src
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
..
stories Fix cursor styles not displaying properly (#3493) 2023-12-04 16:40:53 -05:00
assets.rs Use gpui instead of gpui2 consistenytly 2023-11-06 11:50:33 -07:00
stories.rs Add additional cursors to gpui2 2023-12-04 11:20:41 -05:00
story_selector.rs Extract Tab component (#3539) 2023-12-07 12:30:43 -05:00
storybook2.rs storybook2: Unsuppress and fix warnings (#3425) 2023-11-28 15:43:43 -05:00