Is it possible to set SimpleBar width based on content width?
- 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