-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de818ac
commit 3dab76d
Showing
9 changed files
with
121 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
--- | ||
title: Input File | ||
description: Input File component is used to capture any types of files from the user. | ||
--- | ||
|
||
# Input File | ||
|
||
Ripple UI comes with a set of input file components that can be used to capture any types of files from the user. | ||
|
||
## Default | ||
|
||
Simple example of Input File. | ||
|
||
<input type="file" className="input-file" /> | ||
|
||
```html | ||
<input type="file" className="input-file" /> | ||
``` | ||
|
||
## Colors | ||
|
||
Input File colors | ||
|
||
<div className="flex flex-wrap gap-4"> | ||
<input type="file" className="input-file input-file-primary" /> | ||
<input type="file" className="input-file input-file-secondary" /> | ||
<input type="file" className="input-file input-file-success" /> | ||
<input type="file" className="input-file input-file-error" /> | ||
<input type="file" className="input-file input-file-warning" /> | ||
</div> | ||
|
||
```html | ||
<input type="file" className="input-file input-file-primary" /> | ||
<input type="file" className="input-file input-file-secondary" /> | ||
<input type="file" className="input-file input-file-success" /> | ||
<input type="file" className="input-file input-file-error" /> | ||
<input type="file" className="input-file input-file-warning" /> | ||
``` | ||
|
||
## Sizes | ||
|
||
Input sizes | ||
|
||
<div className="flex flex-wrap flex-col gap-4"> | ||
<input type="file" className="input-file input-file-xs" /> | ||
<input type="file" className="input-file input-file-sm" /> | ||
<input type="file" className="input-file input-file-md" /> | ||
<input type="file" className="input-file input-file-lg" /> | ||
<input type="file" className="input-file input-file-xl" /> | ||
</div> | ||
|
||
```html | ||
<input type="file" className="input-file input-file-xs" /> | ||
<input type="file" className="input-file input-file-sm" /> | ||
<input type="file" className="input-file input-file-md" /> | ||
<input type="file" className="input-file input-file-lg" /> | ||
<input type="file" className="input-file input-file-xl" /> | ||
``` | ||
|
||
## Custom | ||
|
||
You can customize the input file component by using the following structure. | ||
|
||
<input type="file" className="input-file file:bg-pink-600 border-pink-500 file:text-white" /> | ||
|
||
```html | ||
<input type="file" className="input-file file:bg-pink-600 border-pink-500 file:text-white" /> | ||
``` | ||
|
||
## API | ||
<Attributes > | ||
<Attributes.Title>Input File Classes</Attributes.Title> | ||
|
||
| class | Description | | ||
| --------------------- | -------------------------------------------------- | | ||
| input-file | Input File class | | ||
| input-file-primary | Input File with primary color | | ||
| input-file-secondary | Input File with secondary color | | ||
| input-file-success | Input File with success color | | ||
| input-file-error | Input File with error color | | ||
| input-file-warning | Input File with warning color | | ||
| input-file-xs | Input File with extra small size | | ||
| input-file-sm | Input File with small size | | ||
| input-file-md | Input File with medium size | | ||
| input-file-lg | Input File with large size | | ||
| input-file-xl | Input File with extra large size | | ||
|
||
</Attributes> | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters