<template> <div class="d-flex align-items-start" :style="containerStyle"> <div class="sticky-container"> <div class="action-box sidebar bg-light"> <slot /> </div> </div> </div> </template> <script> export default { props: { width: { type: String, default: "215px" }, }, computed: { containerStyle() { return `width: ${this.width};`; }, }, }; </script> <style> .sticky-container { position: sticky; top: 64px; width: 100%; } .action-box { padding-top: 0.01rem; padding-bottom: 1rem; box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.1), inset -1px -1px 1px rgba(0, 0, 0, 0.1); font-size: 0.875rem; } .sidebar .nav-item .feather { margin-right: 4px; color: #727272; } </style>