Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Stack): add Item to adjust single child #2730

Merged
merged 2 commits into from Sep 22, 2022
Merged

Conversation

MarvelSQ
Copy link
Member

Features

add Stack.Item to set single child position

props

props value
alignSelf 'flex-start', 'flex-end' , 'center' , 'baseline','stretch'
flex string
grow number
shrink number
basis string
order string

example

<Stack>
  <div>...</div>
  <Stack.Item grow={1}>test</Stack>
</Stack>

@vercel
Copy link

vercel bot commented Sep 16, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
rsuite-nextjs ✅ Ready (Inspect) Visit Preview Sep 16, 2022 at 6:05AM (UTC)
1 Ignored Deployment
Name Status Preview Updated
rsuite-v4 ⬜️ Ignored (Inspect) Sep 16, 2022 at 6:05AM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 16, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2ae2058:

Sandbox Source
rsuite-tp-ci Configuration

@codecov
Copy link

codecov bot commented Sep 16, 2022

Codecov Report

Base: 85.46% // Head: 85.46% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (2ae2058) compared to base (6b37ff4).
Patch coverage: 80.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2730   +/-   ##
=======================================
  Coverage   85.46%   85.46%           
=======================================
  Files         296      297    +1     
  Lines        9108     9117    +9     
  Branches     2576     2580    +4     
=======================================
+ Hits         7784     7792    +8     
  Misses        693      693           
- Partials      631      632    +1     
Flag Coverage Δ
ChromeCi 85.43% <80.00%> (+<0.01%) ⬆️
Firefox 85.41% <80.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/Stack/Stack.tsx 79.16% <50.00%> (-1.79%) ⬇️
src/Stack/StackItem.tsx 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@SevenOutman SevenOutman merged commit 5af6256 into main Sep 22, 2022
@SevenOutman SevenOutman deleted the feat/expose-stack-item branch September 22, 2022 02:39
myNameIsDu pushed a commit to myNameIsDu/rsuite that referenced this pull request Oct 12, 2022
* feat(Stack): add `Item` to adjust single child

* docs(Stack): add props & example for `Stack.Item`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants