Join 是一个容器,用于将多个项目分组,它可以用于分组按钮、输入框等。Join 将边框半径应用于第一个和最后一个项目。Join 可用于创建水平或垂直的项目列表。
类名 | 类型 | |
---|---|---|
join | 组件 | 用于分组多个项目 |
join-item | 组件 | Join 内部的项目。可以是按钮、输入框等。 |
join-vertical | 方向 | 垂直显示项目 |
join-horizontal | 方向 | 水平显示项目 |
<div class="$$join"> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> </div>
<div class="$$join">
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
</div>
<div class="$$join"> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> </div>
<div class="$$join">
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
</div>
<div class="$$join $$join-vertical"> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> </div>
<div class="$$join $$join-vertical">
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
</div>
<div class="$$join $$join-vertical"> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> </div>
<div class="$$join $$join-vertical">
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
</div>
<div class="$$join $$join-vertical lg:$$join-horizontal"> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> </div>
<div class="$$join $$join-vertical lg:$$join-horizontal">
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
</div>
<div class="$$join $$join-vertical lg:$$join-horizontal"> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> <button class="$$btn $$join-item">Button</button> </div>
<div class="$$join $$join-vertical lg:$$join-horizontal">
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
<button class="$$btn $$join-item">Button</button>
</div>
<div class="$$join"> <div> <div> <input class="$$input $$join-item" placeholder="Search" /> </div> </div> <select class="$$select $$join-item"> <option disabled selected>Filter</option> <option>Sci-fi</option> <option>Drama</option> <option>Action</option> </select> <div class="$$indicator"> <span class="$$indicator-item $$badge $$badge-secondary">new</span> <button class="$$btn $$join-item">Search</button> </div> </div>
<div class="$$join">
<div>
<div>
<input class="$$input $$join-item" placeholder="Search" />
</div>
</div>
<select class="$$select $$join-item">
<option disabled selected>Filter</option>
<option>Sci-fi</option>
<option>Drama</option>
<option>Action</option>
</select>
<div class="$$indicator">
<span class="$$indicator-item $$badge $$badge-secondary">new</span>
<button class="$$btn $$join-item">Search</button>
</div>
</div>
<div class="$$join"> <div> <div> <input class="$$input $$join-item" placeholder="Search" /> </div> </div> <select class="$$select $$join-item"> <option disabled selected>Filter</option> <option>Sci-fi</option> <option>Drama</option> <option>Action</option> </select> <div class="$$indicator"> <span class="$$indicator-item $$badge $$badge-secondary">new</span> <button class="$$btn $$join-item">Search</button> </div> </div>
<div class="$$join">
<div>
<div>
<input class="$$input $$join-item" placeholder="Search" />
</div>
</div>
<select class="$$select $$join-item">
<option disabled selected>Filter</option>
<option>Sci-fi</option>
<option>Drama</option>
<option>Action</option>
</select>
<div class="$$indicator">
<span class="$$indicator-item $$badge $$badge-secondary">new</span>
<button class="$$btn $$join-item">Search</button>
</div>
</div>
<div class="$$join"> <input class="$$input $$join-item" placeholder="Email" /> <button class="$$btn $$join-item rounded-r-full">Subscribe</button> </div>
<div class="$$join">
<input class="$$input $$join-item" placeholder="Email" />
<button class="$$btn $$join-item rounded-r-full">Subscribe</button>
</div>
<div class="$$join"> <input class="$$input $$join-item" placeholder="Email" /> <button class="$$btn $$join-item rounded-r-full">Subscribe</button> </div>
<div class="$$join">
<input class="$$input $$join-item" placeholder="Email" />
<button class="$$btn $$join-item rounded-r-full">Subscribe</button>
</div>
<div class="$$join"> <input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 1" /> <input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 2" /> <input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 3" /> </div>
<div class="$$join">
<input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 1" />
<input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 2" />
<input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 3" />
</div>
<div class="$$join"> <input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 1" /> <input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 2" /> <input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 3" /> </div>
<div class="$$join">
<input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 1" />
<input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 2" />
<input class="$$join-item $$btn" type="radio" name="options" aria-label="Radio 3" />
</div>