@inc2734/unitone-css 0.47.3 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +1 -1
  2. package/dist/app.css +1 -1
  3. package/dist/app.js +1 -1
  4. package/dist/index.js +1 -1
  5. package/dist/library.js +1 -1
  6. package/package.json +8 -14
  7. package/src/app.js +50 -11
  8. package/src/layout-primitives/center/_center.scss +1 -6
  9. package/src/layout-primitives/center/index.jsx +1 -1
  10. package/src/layout-primitives/cover/_cover.scss +1 -0
  11. package/src/layout-primitives/float/_float.scss +4 -4
  12. package/src/layout-primitives/float/index.jsx +1 -1
  13. package/src/layout-primitives/layers/_layers.scss +21 -8
  14. package/src/layout-primitives/layers/index.jsx +4 -2
  15. package/src/layout-primitives/text/index.jsx +2 -1
  16. package/src/layout-primitives/vertical-writing/index.jsx +3 -1
  17. package/src/library.js +2 -1
  18. package/dist/storybook.css +0 -1
  19. package/src/layout-primitives/both-sides/README.md +0 -143
  20. package/src/layout-primitives/both-sides/stories/index.stories.jsx +0 -49
  21. package/src/layout-primitives/center/README.md +0 -113
  22. package/src/layout-primitives/center/stories/index.stories.jsx +0 -63
  23. package/src/layout-primitives/cluster/README.md +0 -133
  24. package/src/layout-primitives/cluster/stories/index.stories.jsx +0 -135
  25. package/src/layout-primitives/container/README.md +0 -93
  26. package/src/layout-primitives/container/stories/index.stories.jsx +0 -65
  27. package/src/layout-primitives/cover/README.md +0 -195
  28. package/src/layout-primitives/cover/stories/index.stories.jsx +0 -179
  29. package/src/layout-primitives/decorator/README.md +0 -179
  30. package/src/layout-primitives/decorator/stories/index.stories.jsx +0 -198
  31. package/src/layout-primitives/float/README.md +0 -115
  32. package/src/layout-primitives/float/stories/index.stories.jsx +0 -78
  33. package/src/layout-primitives/frame/README.md +0 -67
  34. package/src/layout-primitives/frame/stories/index.stories.jsx +0 -50
  35. package/src/layout-primitives/gutters/README.md +0 -47
  36. package/src/layout-primitives/gutters/stories/index.stories.jsx +0 -48
  37. package/src/layout-primitives/layers/README.md +0 -307
  38. package/src/layout-primitives/layers/stories/index.stories.jsx +0 -187
  39. package/src/layout-primitives/reel/README.md +0 -115
  40. package/src/layout-primitives/reel/stories/index.stories.jsx +0 -80
  41. package/src/layout-primitives/responsive-grid/README.md +0 -130
  42. package/src/layout-primitives/responsive-grid/stories/index.stories.jsx +0 -234
  43. package/src/layout-primitives/stack/README.md +0 -98
  44. package/src/layout-primitives/stack/stories/index.stories.jsx +0 -193
  45. package/src/layout-primitives/switcher/README.md +0 -73
  46. package/src/layout-primitives/switcher/stories/index.stories.jsx +0 -50
  47. package/src/layout-primitives/text/README.md +0 -139
  48. package/src/layout-primitives/text/stories/index.stories.jsx +0 -148
  49. package/src/layout-primitives/vertical-writing/README.md +0 -133
  50. package/src/layout-primitives/vertical-writing/stories/index.stories.jsx +0 -104
  51. package/src/layout-primitives/with-sidebar/README.md +0 -169
  52. package/src/layout-primitives/with-sidebar/stories/index.stories.jsx +0 -124
  53. package/src/patterns/features/features-1/Features1.jsx +0 -54
  54. package/src/patterns/features/features-1/stories/index.stories.jsx +0 -68
  55. package/src/patterns/features/features-2/Features2.jsx +0 -28
  56. package/src/patterns/features/features-2/stories/index.stories.jsx +0 -67
  57. package/src/patterns/header/header-1/Header1.jsx +0 -34
  58. package/src/patterns/header/header-1/stories/index.stories.jsx +0 -44
  59. package/src/patterns/header/header-2/Header2.jsx +0 -28
  60. package/src/patterns/header/header-2/stories/index.stories.jsx +0 -44
  61. package/src/patterns/header/header-3/Header3.jsx +0 -25
  62. package/src/patterns/header/header-3/stories/index.stories.jsx +0 -43
  63. package/src/patterns/header/header-4/Header4.jsx +0 -28
  64. package/src/patterns/header/header-4/stories/index.stories.jsx +0 -41
  65. package/src/patterns/header/header-5/Header5.jsx +0 -35
  66. package/src/patterns/header/header-5/stories/index.stories.jsx +0 -43
  67. package/src/patterns/header/header-6/Header6.jsx +0 -37
  68. package/src/patterns/header/header-6/stories/index.stories.jsx +0 -58
  69. package/src/patterns/media-text/media-text-1/MediaText1.jsx +0 -44
  70. package/src/patterns/media-text/media-text-1/stories/index.stories.jsx +0 -34
  71. package/src/patterns/media-text/media-text-2/MediaText2.jsx +0 -42
  72. package/src/patterns/media-text/media-text-2/stories/index.stories.jsx +0 -34
  73. package/src/stories/1.introduction.stories.mdx +0 -60
  74. package/src/stories/2.get-started.stories.mdx +0 -49
  75. package/src/stories/3.global-api.stories.mdx +0 -61
  76. package/src/stories/4.global-css-variables.stories.mdx +0 -198
  77. package/src/storybook.scss +0 -10
@@ -1,179 +0,0 @@
1
- import React from 'react';
2
- import readme from '../README.md';
3
-
4
- import { Cover, CoverContent } from '../';
5
- import { Decorator } from '../../decorator';
6
- import { Stack } from '../../stack';
7
-
8
- export default {
9
- title: 'Layout Primitives/Cover',
10
- component: Cover,
11
- parameters: {
12
- notes: { readme },
13
- },
14
- argTypes: {
15
- gap: {
16
- control: { type: 'inline-radio' },
17
- description:
18
- 'Gap. Set by CSS var `--unitone--gap` or `data-unitone-layout` attribute `-gap:x`.',
19
- options: [-2, -1, 0, 1, 2, 3, 4, 5, 6, 7],
20
- table: { defaultValue: { summary: 'var(--unitone--global--gap)' } },
21
- type: { name: 'number', required: false },
22
- },
23
- padding: {
24
- control: { type: 'inline-radio' },
25
- description:
26
- 'Padding. Set by CSS var `--unitone--padding` or `data-unitone-layout` attribute `-padding:x`.',
27
- options: [-2, -1, 0, 1, 2, 3, 4, 5, 6, 7],
28
- table: { defaultValue: { summary: '0var(--unitone--global--gap)' } },
29
- type: { name: 'number', required: false },
30
- },
31
- minHeight: {
32
- control: { type: 'text' },
33
- description: 'Min height. Set by CSS var `--unitone--min-height`.',
34
- table: { defaultValue: { summary: '100vh' } },
35
- type: { name: 'string', required: false },
36
- },
37
- },
38
- args: {
39
- gap: 2,
40
- padding: 2,
41
- minHeight: '100vh',
42
- },
43
- };
44
-
45
- export const Default = (args) => {
46
- return (
47
- <Decorator backgroundColor="#000" color="#fff">
48
- <Cover {...args}>
49
- <p>Lorem ipsum</p>
50
- <CoverContent>
51
- <Stack>
52
- <h1 style={{ '--unitone--font-size': 6 }}>Lorem ipsum dolor sit amet</h1>
53
- <p>
54
- consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
55
- magna aliqua.
56
- </p>
57
- </Stack>
58
- </CoverContent>
59
- <p>Lorem ipsum</p>
60
- </Cover>
61
- </Decorator>
62
- );
63
- };
64
-
65
- export const ExampleHeader = (args) => {
66
- return (
67
- <Decorator backgroundColor="#000" color="#fff">
68
- <Cover {...args}>
69
- <CoverContent valign="top">
70
- <Stack>
71
- <h1 style={{ '--unitone--font-size': 6 }}>Lorem ipsum dolor sit amet</h1>
72
- <p>
73
- consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
74
- magna aliqua.
75
- </p>
76
- </Stack>
77
- </CoverContent>
78
- </Cover>
79
- </Decorator>
80
- );
81
- };
82
- ExampleHeader.storyName = 'Example : Header';
83
- ExampleHeader.args = {
84
- minHeight: '80vh',
85
- };
86
-
87
- export const ExampleFooter = (args) => {
88
- return (
89
- <Decorator backgroundColor="#000" color="#fff">
90
- <Cover {...args}>
91
- <CoverContent valign="bottom">
92
- <Stack>
93
- <h1 style={{ '--unitone--font-size': 6 }}>Lorem ipsum dolor sit amet</h1>
94
- <p>
95
- consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
96
- magna aliqua.
97
- </p>
98
- </Stack>
99
- </CoverContent>
100
- </Cover>
101
- </Decorator>
102
- );
103
- };
104
- ExampleFooter.storyName = 'Example : Footer';
105
- ExampleFooter.args = {
106
- minHeight: '80vh',
107
- };
108
-
109
- export const ExampleHeaderFooter = (args) => {
110
- return (
111
- <Decorator backgroundColor="#000" color="#fff">
112
- <Cover {...args}>
113
- <CoverContent valign="top">
114
- <p>Lorem ipsum</p>
115
- </CoverContent>
116
-
117
- <CoverContent valign="bottom">
118
- <p>Lorem ipsum</p>
119
- </CoverContent>
120
- </Cover>
121
- </Decorator>
122
- );
123
- };
124
- ExampleHeaderFooter.storyName = 'Example : Header Footer';
125
- ExampleHeaderFooter.args = {
126
- minHeight: '80vh',
127
- };
128
-
129
- export const ExampleHeaderCenter = (args) => {
130
- return (
131
- <Decorator backgroundColor="#000" color="#fff">
132
- <Cover {...args}>
133
- <CoverContent valign="top">
134
- <p>Lorem ipsum</p>
135
- </CoverContent>
136
-
137
- <CoverContent valign="center">
138
- <Stack>
139
- <h1 style={{ '--unitone--font-size': 6 }}>Lorem ipsum dolor sit amet</h1>
140
- <p>
141
- consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
142
- magna aliqua.
143
- </p>
144
- </Stack>
145
- </CoverContent>
146
- </Cover>
147
- </Decorator>
148
- );
149
- };
150
- ExampleHeaderCenter.storyName = 'Example : Header Center';
151
- ExampleHeaderCenter.args = {
152
- minHeight: '80vh',
153
- };
154
-
155
- export const ExampleCenterFooter = (args) => {
156
- return (
157
- <Decorator backgroundColor="#000" color="#fff">
158
- <Cover {...args}>
159
- <CoverContent valign="center">
160
- <Stack>
161
- <h1 style={{ '--unitone--font-size': 6 }}>Lorem ipsum dolor sit amet</h1>
162
- <p>
163
- consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore
164
- magna aliqua.
165
- </p>
166
- </Stack>
167
- </CoverContent>
168
-
169
- <CoverContent valign="bottom">
170
- <p>Lorem ipsum</p>
171
- </CoverContent>
172
- </Cover>
173
- </Decorator>
174
- );
175
- };
176
- ExampleCenterFooter.storyName = 'Example : Center Footer';
177
- ExampleCenterFooter.args = {
178
- minHeight: '80vh',
179
- };
@@ -1,179 +0,0 @@
1
- # Decorator
2
-
3
- Decorative blocks. Color, padding, position, etc. can be set.
4
-
5
- ## Usage
6
-
7
- ### HTML
8
-
9
- ```html
10
- <div data-unitone-layout="decorator">
11
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill
12
- </div>
13
- ```
14
-
15
- ### JSX
16
-
17
- ```jsx
18
- import { Decorator } from '@inc2734/unitone-css';
19
-
20
- <Decorator>
21
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill
22
- </Decorator>
23
- ```
24
-
25
- ## Props
26
-
27
- ### Background color
28
-
29
- Background color.
30
-
31
- #### HTML
32
-
33
- ```html
34
- <div data-unitone-layout="decorator" style="--unitone--background-color: red">
35
- ...
36
- </div>
37
- ```
38
-
39
- #### JSX
40
-
41
- ```jsx
42
- import { Decorator } from '@inc2734/unitone-css';
43
-
44
- <Decorator backgroundColor="red">
45
- ...
46
- </Decorator>
47
- ```
48
-
49
- ### Color
50
-
51
- Color.
52
-
53
- #### HTML
54
-
55
- ```html
56
- <div data-unitone-layout="decorator" style="--unitone--color: red">
57
- ...
58
- </div>
59
- ```
60
-
61
- #### JSX
62
-
63
- ```jsx
64
- import { Decorator } from '@inc2734/unitone-css';
65
-
66
- <Decorator color="red">
67
- ...
68
- </Decorator>
69
- ```
70
-
71
- ### Border
72
-
73
- Border.
74
-
75
- #### HTML
76
-
77
- ```html
78
- <div data-unitone-layout="decorator" style="--unitone--border-width: 1px; --unitone--border-color: #000; --unitone--border-radius: 4px">
79
- ...
80
- </div>
81
- ```
82
-
83
- #### JSX
84
-
85
- ```jsx
86
- import { Decorator } from '@inc2734/unitone-css';
87
-
88
- <Decorator borderWidth="1px" borderColor="#000" borderRadius="4px">
89
- ...
90
- </Decorator>
91
- ```
92
-
93
- ### Padding
94
-
95
- Padding.
96
-
97
- #### HTML
98
-
99
- ```html
100
- <div data-unitone-layout="decorator -padding:1">
101
- ...
102
- </div>
103
- ```
104
-
105
- #### JSX
106
-
107
- ```jsx
108
- import { Decorator } from '@inc2734/unitone-css';
109
-
110
- <Decorator padding={1}>
111
- ...
112
- </Decorator>
113
- ```
114
-
115
- ### Position
116
-
117
- Position.
118
-
119
- #### HTML
120
-
121
- ```html
122
- <div data-unitone-layout="decorator -position:relative" style="--unitone--top: 0; --unitone--right: 0; --unitone--bottom: 0; --unitone--left: 0; --unitone--z-index: 1">
123
- ...
124
- </div>
125
- ```
126
-
127
- #### JSX
128
-
129
- ```jsx
130
- import { Decorator } from '@inc2734/unitone-css';
131
-
132
- <Decorator position="relative" top="0" right="0" bottom="0" left="0" zIndex="1">
133
- ...
134
- </Decorator>
135
- ```
136
-
137
- ### Overflow
138
-
139
- Overflow.
140
-
141
- #### HTML
142
-
143
- ```html
144
- <div data-unitone-layout="decorator -overflow:hidden">
145
- ...
146
- </div>
147
- ```
148
-
149
- #### JSX
150
-
151
- ```jsx
152
- import { Decorator } from '@inc2734/unitone-css';
153
-
154
- <Decorator overflow="hidden">
155
- ...
156
- </Decorator>
157
- ```
158
-
159
- ### With shadow
160
-
161
- Add a box shadow.
162
-
163
- #### HTML
164
-
165
- ```html
166
- <div data-unitone-layout="decorator -shadow">
167
- ...
168
- </div>
169
- ```
170
-
171
- #### JSX
172
-
173
- ```jsx
174
- import { Decorator } from '@inc2734/unitone-css';
175
-
176
- <Decorator shadow>
177
- ...
178
- </Decorator>
179
- ```
@@ -1,198 +0,0 @@
1
- import React from 'react';
2
- import readme from '../README.md';
3
-
4
- import { Decorator } from '../';
5
- import { Stack } from '../../stack';
6
-
7
- export default {
8
- title: 'Layout Primitives/Decorator',
9
- component: Decorator,
10
- parameters: {
11
- notes: { readme },
12
- },
13
- argTypes: {
14
- backgroundColor: {
15
- control: { type: 'color' },
16
- description: 'Background color. Set by CSS var `--unitone--background-color`.',
17
- table: { defaultValue: { summary: 'transparent' } },
18
- type: { name: 'string', required: false },
19
- },
20
- borderColor: {
21
- control: { type: 'color' },
22
- description: 'Border color. Set by CSS var `--unitone--border-color`.',
23
- table: { defaultValue: { summary: 'transparent' } },
24
- type: { name: 'string', required: false },
25
- },
26
- borderRadius: {
27
- control: { type: 'text' },
28
- description: 'Border radius. Set by CSS var `--unitone--border-radius`.',
29
- table: { defaultValue: { summary: '0' } },
30
- type: { name: 'string', required: false },
31
- },
32
- borderWidth: {
33
- control: { type: 'text' },
34
- description: 'Border width. Set by CSS var `--unitone--border-width`.',
35
- table: { defaultValue: { summary: '0' } },
36
- type: { name: 'string', required: false },
37
- },
38
- color: {
39
- control: { type: 'color' },
40
- description: 'Text color. Set by CSS var `--unitone--color`.',
41
- table: { defaultValue: { summary: 'inherit' } },
42
- type: { name: 'string', required: false },
43
- },
44
- padding: {
45
- control: { type: 'inline-radio' },
46
- description:
47
- 'Padding. Set by CSS var `--unitone--padding` or `data-unitone-layout` attribute `-padding:x`.',
48
- options: [-2, -1, 0, 1, 2, 3, 4, 5, 6, 7],
49
- table: { defaultValue: { summary: '0px' } },
50
- type: { name: 'number', required: false },
51
- },
52
- shadow: {
53
- control: { type: 'inline-radio' },
54
- description: 'With `box-shadow`.',
55
- options: [false, true],
56
- table: { defaultValue: { summary: false } },
57
- type: { name: 'boolean', required: false },
58
- },
59
- position: {
60
- control: { type: 'inline-radio' },
61
- description: 'The position value.',
62
- options: ['static', 'relative', 'absolute', 'sticky', 'fixed'],
63
- table: { defaultValue: { summary: 'static' } },
64
- type: { name: 'string', required: false },
65
- },
66
- top: {
67
- control: { type: 'text' },
68
- description: 'Offset top.',
69
- table: { defaultValue: { summary: 'initial' } },
70
- type: { name: 'string', required: false },
71
- },
72
- right: {
73
- control: { type: 'text' },
74
- description: 'Offset right.',
75
- table: { defaultValue: { summary: 'initial' } },
76
- type: { name: 'string', required: false },
77
- },
78
- bottom: {
79
- control: { type: 'text' },
80
- description: 'Offset bottom.',
81
- table: { defaultValue: { summary: 'initial' } },
82
- type: { name: 'string', required: false },
83
- },
84
- left: {
85
- control: { type: 'text' },
86
- description: 'Offset left.',
87
- table: { defaultValue: { summary: 'initial' } },
88
- type: { name: 'string', required: false },
89
- },
90
- zIndex: {
91
- control: { type: 'text' },
92
- description: 'z-index.',
93
- table: { defaultValue: { summary: 'initial' } },
94
- type: { name: 'string', required: false },
95
- },
96
- overflow: {
97
- control: { type: 'inline-radio' },
98
- description: 'The overflow value.',
99
- options: ['visible', 'hidden', 'scroll'],
100
- table: { defaultValue: { summary: 'visible' } },
101
- type: { name: 'string', required: false },
102
- },
103
- },
104
- args: {
105
- backgroundColor: 'transarent',
106
- borderColor: 'transparent',
107
- borderRadius: '0px',
108
- borderWidth: '0px',
109
- color: 'initial',
110
- padding: 0,
111
- shadow: false,
112
- position: 'static',
113
- top: 'initial',
114
- right: 'initial',
115
- bottom: 'initial',
116
- left: 'initial',
117
- zIndex: 'initial',
118
- overflow: 'visible',
119
- },
120
- };
121
-
122
- const content =
123
- 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill';
124
-
125
- export const Default = (args) => {
126
- return (
127
- <Decorator {...args}>
128
- <p>{content}</p>
129
- </Decorator>
130
- );
131
- };
132
-
133
- export const ExampleShadow = (args) => {
134
- return (
135
- <Decorator {...args}>
136
- <p>{content}</p>
137
- </Decorator>
138
- );
139
- };
140
- ExampleShadow.storyName = 'Example : Shadow';
141
- ExampleShadow.argTypes = {
142
- shadow: { table: { disable: true } },
143
- };
144
- ExampleShadow.args = {
145
- padding: 1,
146
- shadow: true,
147
- };
148
-
149
- export const ExampleCombobox = (args) => {
150
- return (
151
- <Decorator borderWidth={args.borderWidth} borderColor={args.backgroundColor}>
152
- <Decorator
153
- padding={args.padding}
154
- backgroundColor={args.backgroundColor}
155
- color="var(--unitone--color--white)"
156
- >
157
- Combo Box
158
- </Decorator>
159
- <Decorator padding={args.padding}>
160
- <p>{content}</p>
161
- </Decorator>
162
- </Decorator>
163
- );
164
- };
165
- ExampleCombobox.storyName = 'Example : Combobox';
166
- ExampleCombobox.argTypes = {
167
- color: { table: { disable: true } },
168
- borderColor: { table: { disable: true } },
169
- };
170
- ExampleCombobox.args = {
171
- padding: -1,
172
- backgroundColor: '#000',
173
- borderWidth: '1px',
174
- };
175
-
176
- export const ExamplePosition = (args) => {
177
- return (
178
- <Decorator position="relative">
179
- <Stack>
180
- <Decorator backgroundColor="#000" color="#fff" padding={1}>
181
- {content}
182
- </Decorator>
183
- <Decorator {...args}>{content}</Decorator>
184
- <Decorator backgroundColor="#000" color="#fff" padding={1}>
185
- {content}
186
- </Decorator>
187
- </Stack>
188
- </Decorator>
189
- );
190
- };
191
- ExamplePosition.storyName = 'Example : Position';
192
- ExamplePosition.args = {
193
- padding: -1,
194
- borderWidth: '1px',
195
- backgroundColor: 'rgba(255, 0, 0, .7)',
196
- position: 'absolute',
197
- top: '100px',
198
- };
@@ -1,115 +0,0 @@
1
- # Float
2
-
3
- ## Usage
4
-
5
- ### HTML
6
-
7
- ```html
8
- <div data-unitone-layout="float">
9
- <img src="https://placehold.jp/400x300.jpg" alt="" />
10
- </div>
11
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill</p>
12
- ```
13
-
14
- ### JSX
15
-
16
- ```jsx
17
- import { Float } from '@inc2734/unitone-css';
18
-
19
- <Float>
20
- <img src="https://placehold.jp/400x300.jpg" alt="" />
21
- </Float>
22
- <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cill</p>
23
- ```
24
-
25
- ## Props
26
-
27
- ### Position
28
-
29
- Change floating position.
30
-
31
- left / right
32
-
33
- #### HTML
34
-
35
- ```html
36
- <div data-unitone-layout="float -right">
37
- ...
38
- </div>
39
- ```
40
-
41
- #### JSX
42
-
43
- ```jsx
44
- import { Float } from '@inc2734/unitone-css';
45
-
46
- <Float position="right">
47
- ...
48
- </Float>
49
- ```
50
-
51
- ### Gap
52
-
53
- Gap.
54
-
55
- #### HTML
56
-
57
- ```html
58
- <div data-unitone-layout="float -gap:1">
59
- ...
60
- </div>
61
- ```
62
-
63
- #### JSX
64
-
65
- ```jsx
66
- import { Float } from '@inc2734/unitone-css';
67
-
68
- <Float gap={1}>
69
- ...
70
- </Float>
71
- ```
72
-
73
- ### Min width
74
-
75
- Min width of the floating item.
76
-
77
- #### HTML
78
-
79
- ```html
80
- <div data-unitone-layout="float" style="--unitone--min-width: 500px">
81
- ...
82
- </div>
83
- ```
84
-
85
- #### JSX
86
-
87
- ```jsx
88
- import { Float } from '@inc2734/unitone-css';
89
-
90
- <Float minWidth="500px">
91
- ...
92
- </Float>
93
- ```
94
-
95
- ### Min measure.
96
-
97
- Min width of the item following the floating item.
98
-
99
- #### HTML
100
-
101
- ```html
102
- <div data-unitone-layout="float" style="--unitone--min-measure: 500px">
103
- ...
104
- </div>
105
- ```
106
-
107
- #### JSX
108
-
109
- ```jsx
110
- import { Float } from '@inc2734/unitone-css';
111
-
112
- <Float minMeasure="500px">
113
- ...
114
- </Float>
115
- ```