LoginSignup
0
1

More than 1 year has passed since last update.

react-bootstrapのForm.Check要素を中央に配置する方法

Last updated at Posted at 2023-02-15

<div> で要素を囲み、style を以下のように指定すると中央寄せになる。

sample.tsx
<div style={{ display: 'flex', justifyContent: 'center' }}>
    <Form.Check
      //...
    />
</div>

もっと良い方法があれば教えてください。。。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1