Grsmto / Grsmto/simplebar

Is it possible to set SimpleBar width based on content width?

Open
#565 3 comments 14 reactions 0 assignees View on GitHub
question
Dominant language
TypeScript
Stars
6.4k
Forks
527
PR merge metrics
No merged PRs in 30d

Description

## 💬 Questions and Help

Is it possible to set SimpleBar width based on content width, without using JavaScript to access DOM/Calculate/Update SimpleBar width? Something like (React example):

```js

```
```css
.max-height-20rem {
max-height: 20rem;
}

.width-max-content {
width: max-content; /* This obviously does not work /*
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue contains a React usage example and CSS for max-height and content-based width, but names no source file or test. Start by clarifying whether SimpleBar should support sizing itself to content without DOM measurement; done would be a documented or implemented answer that works for the shown example.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.