Dev Design Library

Spacer

A flexible flex spacer that expands along the major axis of its containing flex layout. It renders a div by default, and takes up any available space.

Spacer preview
Library
Chakra UI
Framework
React
Type
component
License
MIT
Install
npm i @chakra-ui/react @emotion/react
Files
  • packages/react/src/components/spacer/index.ts
  • packages/react/src/components/spacer/spacer.tsx
  • packages/react/src/styled-system/index.ts
  • packages/react/src/styled-system/config.ts
  • packages/react/src/styled-system/create-recipe-context.tsx
  • packages/react/src/styled-system/create-slot-recipe-context.tsx
  • packages/react/src/styled-system/css.types.ts
  • packages/react/src/styled-system/composition.ts
Source
https://github.com/chakra-ui/chakra-ui

Categories

More from Chakra UI