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

Allow to pass innerRef to CardBody #1314

Closed
sevdog opened this issue Dec 5, 2018 · 0 comments · Fixed by #1318 or #1342
Closed

Allow to pass innerRef to CardBody #1314

sevdog opened this issue Dec 5, 2018 · 0 comments · Fixed by #1318 or #1342

Comments

@sevdog
Copy link

sevdog commented Dec 5, 2018

Issue description

At the moment Card component allows to pass innerRef to get a refence of inner element, but CardBody does not.

There are some use case in which someone whould use a full card (ie: Card, CardHeader, CardBody, CardFooter, etc...) and will want to references the body.

  • components: CardBody
  • reactstrap version #6.5.0

Example

<Card>
  <CardHeader>My title</CardHeader>
  <CardBody innerRef={myRef}>
    content which may be very long
    and scroll
  </CardBody>
  <CardFooter>My footer info</CardFooter>
</Card>
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 a pull request may close this issue.

1 participant