Skip to content

Commit

Permalink
feat(react): add component aspect-ratio (#21)
Browse files Browse the repository at this point in the history
close  #19
  • Loading branch information
gerzon05 authored Mar 27, 2024
2 parents 8dabdee + 2841bf1 commit 6734f0f
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ This design system is totally easy to use with the aim of facilitating upcoming
_General_

- [x] Button
- [ ] Typography
- [ ] Icon
- [ ] Image
- [x] Aspect Ratio
- [x] Carousel

_Data Input_
Expand Down
1 change: 1 addition & 0 deletions lib/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"dependencies": {
"@desing-system/theme": "workspace:*",
"@radix-ui/react-aspect-ratio": "1.0.3",
"@radix-ui/react-slot": "1.0.2",
"class-variance-authority": "0.7.0",
"clsx": "2.1.0",
Expand Down
5 changes: 5 additions & 0 deletions lib/react/src/components/aspect-ratio.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio'

const AspectRatio = AspectRatioPrimitive.Root

export { AspectRatio }
1 change: 1 addition & 0 deletions lib/react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export * from './components/button'
export * from './components/alert'
export * from './components/carousel'
export * from './components/badge'
export * from './components/aspect-ratio'
46 changes: 45 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6734f0f

Please sign in to comment.