jxnblk/reflexbox là dự án JavaScript với 1.3k sao trong nhóm Frontend. Moved to https://rebassjs.org
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Primitive for controlling width, margin, padding and more.
Props
Both <Flex /> and <Box /> share the same props.
w (number|string) sets width, where numbers 0-1 are percentage values, larger numbers are pixel values, and strings are raw CSS values with units.
flex (boolean) sets display: flex
wrap (boolean) sets flex-wrap: wrap
column (boolean) sets flex-direction: column
auto (boolean) sets flex: 1 1 auto
order (number) sets order
align (string) sets align-items
justify (string) sets justify-content
Margin and Padding
Margin and padding props accept numbers 0-4 for values from the spacing scale [ 0, 8, 16, 32, 64 ].
Numbers greater than 4 will be used as pixel values.
Negative values can be used for negative margins.
Strings can be passed for other CSS values, e.g. mx='auto'
m (number|string) margin based on a scale from 0–4.
mx (number|string) x-axis margin based on a scale from 0–4.
my (number|string) y-axis margin based on a scale from 0–4.
mt (number|string) margin-top based on a scale from 0–4.
mb (number|string) margin-bottom based on a scale from 0–4.
ml (number|string) margin-left based on a scale from 0–4.
mr (number|string) margin-right based on a scale from 0–4.
p (number|string) padding based on a scale from 0–4.
px (number|string) x-axis padding based on a scale from 0–4.
py (number|string) y-axis padding based on a scale from 0–4.
pt (number|string) padding-top based on a scale from 0–4.
pb (number|string) padding-bottom based on a scale from 0–4.
pl (number|string) padding-left based on a scale from 0–4.
pr (number|string) padding-right based on a scale from 0–4.
Responsive Array Prop Values
All props accept arrays as values for mobile-first responsive styles.
// Set widths for different breakpoints, starting from smallest to largest
// This example will be 100% width below the smallest breakpoint,
// then 50% and 25% for the next two breakpoints respectively
<Box w={[ 1, 1/2, 1/4 ]} />
Null values can be passed to the array to skip a breakpoint.
<Box w={[ 1, null, 1/2 ]} />
Configuration
Values for the breakpoints and space scale can be configured with
React Context.
Context can be set manually or with the <ReflexProvider /> component.
This currently DOES NOT work in Node.js server-side applications.
If you need server-side support, see version ^2.2.0 or one of the related libraries below.
jxnblk/reflexbox thuộc nhóm Frontend trên TopGit, cùng 6 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về jxnblk/reflexbox ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/jxnblk/reflexbox là nguồn chính thức.
jxnblk/reflexbox có bao nhiêu sao?
jxnblk/reflexbox có 1.3k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/jxnblk/reflexbox. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
jxnblk/reflexbox có phải mã nguồn mở không?
TopGit chưa ghi nhận license cho jxnblk/reflexbox. Phần lớn repo public trên GitHub là mã nguồn mở, nhưng điều khoản khác nhau từng repo — mở file LICENSE để xác nhận.
jxnblk/reflexbox còn đang phát triển không?
Commit gần nhất trên jxnblk/reflexbox là 8.8 năm trước (theo timestamp GitHub). Repo có 49 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
jxnblk/reflexbox là gì?
jxnblk/reflexbox (jxnblk/reflexbox) là dự án JavaScript trên GitHub. Theo mô tả gốc: Moved to https://rebassjs.org
jxnblk/reflexbox viết bằng ngôn ngữ gì?
jxnblk/reflexbox chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc reflexbox có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về reflexbox.