Skip to content

Commit

Permalink
add border radius trick docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaHadjar committed Mar 1, 2024
1 parent 2712948 commit bf8206d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions apps/docs/docs/fundamentals/tips-and-tricks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,20 @@ export function ImperativeScrolling() {
</video>

</HStack>

## Setting Border Radius to `Calendar.Item.Day`

To apply a border radius to the `Calendar.Item.Day` component, it's necessary to specify the radius for all four corners. Here's an example of how to achieve this:

```tsx
itemDay: {
base: () => ({
container: {
borderTopRightRadius: 10,
borderBottomRightRadius: 10,
borderTopLeftRadius: 10,
borderBottomLeftRadius: 10,
},
}),
}
```

0 comments on commit bf8206d

Please sign in to comment.