<picture class="only-github">
<source media="(prefers-color-scheme: dark)" srcset="https://edward-jazzhands.github.io/assets/textual-slidecontainer/banner-dark-theme.png">
<source media="(prefers-color-scheme: light)" srcset="https://edward-jazzhands.github.io/assets/textual-slidecontainer/banner-light-theme.png">
<img src="https://edward-jazzhands.github.io/assets/textual-slidecontainer/banner-light-theme.png">
</picture>
<!-- MKDOCS-START


MKDOCS-END -->
# textual-slidecontainer
[](https://astral.sh/ruff)
[](https://github.com/psf/black)
[-blue?style=for-the-badge&logo=python)](https://mypy-lang.org/)
[-blue?style=for-the-badge&logo=python)](https://microsoft.github.io/pyright/)
[](https://opensource.org/license/mit)
[](https://textual.textualize.io/)
This is a library that provides a custom container (widget) called the SlideContainer.
It is designed to make it extremely simple to implement sliding menu bars in your [Textual](https://github.com/Textualize/textual) apps.
## Features
- Usage is a single line of code with the default settings. Everything is handled automatically.
- Set a precise dock position - The dock position argument adds topleft, topright, bottomleft, and bottomright to Textual's 4 arguments of top, bottom, left, and right for 8 dock positions total.
- Set the slide direction - Containers can slide to the left, right, top, or bottom. This can be changed or tweaked independently of the dock position (For example, dock to bottom right, then you can slide down or slide right.)
- Enable or disable Floating mode - With a boolean, containers can switch between floating on top of your app, or being a part of it and affecting the layout.
- Set the default state - Containers can be set to start in closed mode.
- Set the container to dock as an initialization argument.
- Floating containers automatically dock to the edge they move towards (this can be changed).
- Change how the animation looks with the duration, fade, and easing_function arguments.
- Included demo application which has comments in the code.
## Demo App
If you have [uv](https://docs.astral.sh/uv/) or [pipx](https://pipx.pypa.io/stable/), you can immediately try the demo app:
```sh
uvx textual-slidecontainer
```
```sh
pipx run textual-slidecontainer
```
## Documentation
### [Click here for documentation](https://edward-jazzhands.github.io/libraries/textual-slidecontainer/docs/)
## Video
<video style="width: 100%; height: auto;" controls loop>
<source src="https://edward-jazzhands.github.io/assets/textual-slidecontainer/demo-handbrake.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
[ ](https://github.com/user-attachments/assets/0c96a18f-958d-421b-950d-e0c303e774d9)
## Questions, Issues, Suggestions?
Use the [issues](https://github.com/edward-jazzhands/textual-slidecontainer/issues) section for bugs or problems, and post ideas or feature requests on the [TTY group discussion board](https://github.com/orgs/ttygroup/discussions).
Raw data
{
"_id": null,
"home_page": null,
"name": "textual-slidecontainer",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "python, slidecontainer, textual, tui, widget",
"author": null,
"author_email": "edward-jazzhands <ed.jazzhands@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/ef/eb/29f420f296d1a336b15a72449eb99a10ff5b2ff2ff8441b584f0af2749ad/textual_slidecontainer-0.6.0.tar.gz",
"platform": null,
"description": "<picture class=\"only-github\">\n <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://edward-jazzhands.github.io/assets/textual-slidecontainer/banner-dark-theme.png\">\n <source media=\"(prefers-color-scheme: light)\" srcset=\"https://edward-jazzhands.github.io/assets/textual-slidecontainer/banner-light-theme.png\"> \n <img src=\"https://edward-jazzhands.github.io/assets/textual-slidecontainer/banner-light-theme.png\">\n</picture>\n\n<!-- MKDOCS-START\n\n\nMKDOCS-END -->\n\n# textual-slidecontainer\n\n[](https://astral.sh/ruff)\n[](https://github.com/psf/black)\n[-blue?style=for-the-badge&logo=python)](https://mypy-lang.org/)\n[-blue?style=for-the-badge&logo=python)](https://microsoft.github.io/pyright/)\n[](https://opensource.org/license/mit)\n[](https://textual.textualize.io/)\n\nThis is a library that provides a custom container (widget) called the SlideContainer.\n\nIt is designed to make it extremely simple to implement sliding menu bars in your [Textual](https://github.com/Textualize/textual) apps.\n\n## Features\n\n- Usage is a single line of code with the default settings. Everything is handled automatically.\n- Set a precise dock position - The dock position argument adds topleft, topright, bottomleft, and bottomright to Textual's 4 arguments of top, bottom, left, and right for 8 dock positions total.\n- Set the slide direction - Containers can slide to the left, right, top, or bottom. This can be changed or tweaked independently of the dock position (For example, dock to bottom right, then you can slide down or slide right.)\n- Enable or disable Floating mode - With a boolean, containers can switch between floating on top of your app, or being a part of it and affecting the layout.\n- Set the default state - Containers can be set to start in closed mode.\n- Set the container to dock as an initialization argument.\n- Floating containers automatically dock to the edge they move towards (this can be changed).\n- Change how the animation looks with the duration, fade, and easing_function arguments.\n- Included demo application which has comments in the code.\n\n## Demo App\n\nIf you have [uv](https://docs.astral.sh/uv/) or [pipx](https://pipx.pypa.io/stable/), you can immediately try the demo app:\n\n```sh\nuvx textual-slidecontainer\n```\n\n```sh\npipx run textual-slidecontainer\n```\n\n## Documentation\n\n### [Click here for documentation](https://edward-jazzhands.github.io/libraries/textual-slidecontainer/docs/)\n\n## Video\n\n<video style=\"width: 100%; height: auto;\" controls loop>\n <source src=\"https://edward-jazzhands.github.io/assets/textual-slidecontainer/demo-handbrake.mp4\" type=\"video/mp4\">\n Your browser does not support the video tag.\n</video>\n\n[ ](https://github.com/user-attachments/assets/0c96a18f-958d-421b-950d-e0c303e774d9)\n\n## Questions, Issues, Suggestions?\n\nUse the [issues](https://github.com/edward-jazzhands/textual-slidecontainer/issues) section for bugs or problems, and post ideas or feature requests on the [TTY group discussion board](https://github.com/orgs/ttygroup/discussions).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Sliding Container widget for Textual",
"version": "0.6.0",
"project_urls": {
"Changelog": "https://github.com/edward-jazzhands/textual-slidecontainer/blob/master/Changelog.md",
"Repository": "https://github.com/edward-jazzhands/textual-slidecontainer"
},
"split_keywords": [
"python",
" slidecontainer",
" textual",
" tui",
" widget"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "3158f1a8683f8e70f19be9b620823b47b013f44f8dcb4f7e49dcf52e3e9c0460",
"md5": "195e190db4b42557e15cecd9545b1238",
"sha256": "2d45f517b648c9f6edf9a3152ac352e73daa0ff33816147512d7fbe6c31b5af6"
},
"downloads": -1,
"filename": "textual_slidecontainer-0.6.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "195e190db4b42557e15cecd9545b1238",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 10954,
"upload_time": "2025-07-28T06:42:43",
"upload_time_iso_8601": "2025-07-28T06:42:43.516983Z",
"url": "https://files.pythonhosted.org/packages/31/58/f1a8683f8e70f19be9b620823b47b013f44f8dcb4f7e49dcf52e3e9c0460/textual_slidecontainer-0.6.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "efeb29f420f296d1a336b15a72449eb99a10ff5b2ff2ff8441b584f0af2749ad",
"md5": "1e32ac298fa2ebdc70a64470b02f5acc",
"sha256": "a4f1a98f86eff3529c99ee157f33e59ec280d71cb2ca070cf6389026e3ad7974"
},
"downloads": -1,
"filename": "textual_slidecontainer-0.6.0.tar.gz",
"has_sig": false,
"md5_digest": "1e32ac298fa2ebdc70a64470b02f5acc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 125108,
"upload_time": "2025-07-28T06:42:45",
"upload_time_iso_8601": "2025-07-28T06:42:45.807922Z",
"url": "https://files.pythonhosted.org/packages/ef/eb/29f420f296d1a336b15a72449eb99a10ff5b2ff2ff8441b584f0af2749ad/textual_slidecontainer-0.6.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-28 06:42:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "edward-jazzhands",
"github_project": "textual-slidecontainer",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "textual-slidecontainer"
}