Skip to content

Commit

Permalink
update card style
Browse files Browse the repository at this point in the history
  • Loading branch information
glassonion1 committed Nov 2, 2023
1 parent d3eb6a8 commit cc85c70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions examples/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ const App = () => {
XXXXXxxxxxxxxxxxxxXXX
</CardBody>
</Card>
<Card>
<CardHeader>XXXxxx</CardHeader>
<CardBody>XXXXXXXXXxxxxxxxxxxxxxxxxxxxxxxxxx</CardBody>
</Card>
</div>
<div className="w-1/3 my-4">
<Card>
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sakura-ui/core",
"version": "0.1.22",
"version": "0.1.23",
"type": "module",
"main": "dist/index.cjs.js",
"types": "dist/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions packages/core/src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ export const Card = (props: CardProps) => {
sm:rounded-3xl
text-sumi-900
overflow-hidden
flex
flex-col
gap-3
`

return (
Expand All @@ -52,6 +49,7 @@ export const CardHeader = (props: CardHeaderProps) => {
px-6
first:pt-6
last:pb-6
py-3
text-base
font-medium
`
Expand All @@ -72,6 +70,7 @@ export const CardBody = (props: CardBodyProps) => {
px-6
first:pt-6
last:pb-6
pb-3
text-base-sm
`

Expand Down

0 comments on commit cc85c70

Please sign in to comment.