项目
在 GitHub 查看
pie6k/react-ios-corners
关于
iOS like border-radius corners react component
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文React ios corners
demo - https://pie6k.github.io/react-ios-corners/

Create ios like rounded corners (squircle). Comparsion with regular border radius:


Playing with different 'roundness' setting, you can achieve look similar to iOS home screen app icons etc.
Links
https://en.wikipedia.org/wiki/Squircle
https://medium.com/minimal-notes/rounded-corners-in-the-apple-ecosystem-1b3f45e18fcc (Highly recommending!)
Usage
import { Squircle } from 'react-ios-corners';
function MyComponent() {
return <Squircle>Hello</Squircle>;
}
Properties
export interface SquircleProps {
radius?: number | 'auto';
roundness?: number; // 0-1
}
It also accept any div property and passes it to the holder.
Note: box-shadow will not be visible because under the hood squircle is based on css masks.
探索相关项目
加载中…