プロジェクト
概要
iOS like border-radius corners react component
Web・アプリ開発計測したスター増加
- 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.
関連プロジェクトを探す
読み込み中…