Ícones
Todos os ícones do pacote @medway-ui/icons. A lista é gerada a partir dos SVGs do repositório, então um ícone novo aparece aqui assim que entra na main, um pouco antes de ser publicado no npm. Enquanto isso, ele leva a marca Não publicado e chega na próxima versão do pacote. Se o import de um ícone sem a marca falhar, atualize o @medway-ui/icons no seu projeto.
Busque pelo nome e clique em um ícone para copiar o import.
Add Column
Add Minus Square
Add Plus
Add Plus Circle
Add Plus Square
Add Row
Add To Queue
Agenda Ai
Airplay
Alarm
Almost Ai
Anticipate
Archive
Arrow Circle Down
Arrow Circle Down Left
Arrow Circle Down Right
Arrow Circle Left
Arrow Circle Right
Arrow Circle Up
Arrow Circle Up Left
Arrow Circle Up Right
Arrow Down Left Lg
Arrow Down Left Md
Arrow Down Left Sm
Arrow Down Lg
Arrow Down Md
Arrow Down Right Lg
Arrow Down Right Md
Arrow Down Right Sm
Arrow Down Sm
Arrow Down Up
Arrow Left Lg
Arrow Left Md
Arrow Left Right
Arrow Left Sm
Arrow Reload 02
Arrow Right Lg
Arrow Right Md
Arrow Right Sm
Arrow Sub Down Left
Arrow Sub Down Right
Arrow Sub Left Down
Arrow Sub Left Up
Arrow Sub Right Down
Arrow Sub Right Up
Arrow Sub Up Left
Arrow Sub Up Right
Arrow Undo Down Left
Arrow Undo Down Right
Arrow Undo Up Left
Arrow Undo Up Right
Arrow Up Left Lg
Arrow Up Left Md
Arrow Up Left Sm
Arrow Up Lg
Arrow Up Md
Arrow Up Right Lg
Arrow Up Right Md
Arrow Up Right Sm
Arrow Up Sm
Arrows Reload 01
Attention Ai
Bar Bottom
Bar Left
Bar Right
Bar Top
Bell
Bell Add
Bell Close
Bell Notification
Bell Off
Bell Remove
Bell Ring
Bold
Bolt
Book
Book 2
Book Open
Bookmark
Building
Building 2
Building 3
Building 4
Bulb
Calendar
Calendar Add
Calendar Check
Calendar Close
Calendar Days
Calendar Edit
Calendar Event
Calendar List
Calendar Remove
Calendar Week
Camera
Car Auto
Card
Card Library
Caret Circle Down
Caret Circle Left
Caret Circle Right
Caret Circle Up
Caret Down Md
Caret Down Sm
Caret Left Sm
Caret Right Sm
Caret Up Md
Caret Up Sm
Chart Bar Horizontal
Chart Bar Vertical
Chart Bar Vertical 02
Chart Line
Chart Pie
Chat
Chat Add
Chat Check
Chat Circle
Chat Circle Add
Chat Circle Check
Chat Circle Close
Chat Circle Dots
Chat Circle Remove
Chat Close
Chat Conversation
Chat Conversation Circle
Chat Dots
Chat Remove
Check
Check All
Check All Lg
Check Lg
Check Medium
Checkbox Check
Checkbox Fill
Checkbox Unchecked
Chevron Down
Chevron Down Duo
Chevron Left
Chevron Left Duo
Chevron Left Md
Chevron Right
Chevron Right Duo
Chevron Right Md
Chevron Up
Chevron Up Duo
Chromecast
Circle
Circle Check
Circle Help
Circle Warning
Clap
Clock
Clock Progress
Close Circle
Close Lg
Close Md
Close Sm
Close Square
Cloud
Cloud Add
Cloud Check
Cloud Close
Cloud Download
Cloud Off
Cloud Remove
Cloud Sync
Cloud Upload
Cloudy
Code
Coffe To Go
Coffee
Coffee Alt
Columns
Combine Ai
Combine Cells
Command
Compass
Compass 02
Content Update
Cookie
Copy
Credit Card
Credit Card 2
Critical Ai
Crop
Cupcake
Cylinder
Data
Delete Column
Delete Row
Dermatology
Desktop
Desktop Tower
Devices
Double Quotes L
Double Quotes R
Download
Download Package
Drag Horizontal
Drag Vertical
Drawing Pencil
Dummy Circle
Dummy Circle Sm
Dummy Square
Dummy Square Sm
Edit Pencil
Edit Pencil 2
Edit Pencil Line
Edit Pencil Line 2
Event Edit
Event Shortcut
Exit
Expand
External Link
Figma
File Add
File Blank
File Check
File Close
File Code
File Document
File Download
File Edit
File Remove
File Search
File Upload
Files
Filter
Filter Off
Fire
First Aid
Flag
Flag 2
Flashcard
Flashcard Ai
Flashcards Statistics
Focus
Folder
Folder Add
Folder Check
Folder Close
Folder Code
Folder Document
Folder Download
Folder Edit
Folder Open
Folder Remove
Folder Search
Folder Upload
Folders
Font
Forward
Gift
Globe
Goal Ai
Graduation
Grid
Gynecology And Obstetrics
Half Check Lg
Hamburger Lg
Hamburger Md
Handbag
Heading
Heading H1
Heading H2
Heading H3
Heading H4
Heading H5
Heading H6
Headphones
Heart
Heart 2
Help
Hide
Horn
House
House 2
House 3
House Add
House Check
House Close
House Remove
Image
Image 2
Index Bar High
Index Bar Low
Index Bar Medium
Index Bar Priority
Index High
Index Low
Index Medium
Index Priority
Index Pyramid High
Index Pyramid Low
Index Pyramid Medium
Index Pyramid Priority
Info
Instance
Internship Content
Internship Sync
Italic
Keyboard
Label
Laptop
Last Activity
Layer
Layers
Leaf
Line L
Line M
Line S
Line Xl
Link
Link Break
Link Horizontal
Link Horizontal Off
Link Vertical
List Add
List Check
List Checklist
List Ordered
List Remove
List Unordered
Loading
Lock
Lock Open
Log Out
Magnifying Glass Minus
Magnifying Glass Plus
Mail
Mail Open
Main Component
Map
Map Pin
Medbrain
Medbrain Ai
Medical Clinic
Medicine Study
Medway Badge
Medway Card Library
Medway Shield
Mental Disorder
Mention
Menu Alt
Menu Alt 2
Menu Alt 3
Menu Alt 4
Menu Alt 5
Menu Duo Lg
Menu Duo Md
Midnight
Mobile
Mobile Button
Monitor
Monitor Play
Moon
More Grid Lg
More Grid Sm
More Horizontal
More Vertical
Mouse
Move
Move Horizontal
Move Vertical
Moving Desk
Navigation
Note
Note Edit
Note Search
Notebook
Octagon
Octagon Check
Octagon Help
Octagon Warning
Option
Paper Plane
Paperclip Attechment Horizontal
Paperclip Attechment Tilt
Paragraph
Path
Pause
Pause Circle
Pediatrics
Pen
Phone
Planet
Play
Play Circle
Playlist
Playlist Add
Playlist Check
Postpone
Preventive
Printer
Puzzle
Qr Code
Question Ai
Question Bubble
Radio Fill
Radio Unchecked
Radiology
Rainbow
Rat
Redo
Reload Ai
Remove Minus
Remove Minus Circle
Repeat
Rewind
Rocket
Rocket 2
Rows
Ruler
Sad
Save
Search Ai
Search Error
Search Magnifying Glass
Select Multiple
Settings
Settings Future
Shape 5
Shape 6
Shape 7
Shape 8
Share Android
Share I Os Export
Shield
Shield Check
Shield Warning
Shopping Bag
Shopping Bag 2
Shopping Cart
Shopping Cart 2
Show
Shrink
Shuffle
Sidebar Close
Sidebar Open
Single Quotes L
Single Quotes R
Skip Back
Skip Forward
Slider
Slider 2
Slider 3
Smile
Sort Ascending
Sort Descending
Sparkle Arrow Down Right Md
Sparkle Arrow Right Md
Sparkle Arrow Sub Down Right Md
Sparkle Arrow Up Md
Sparkle Arrow Up Right Md
Sparkles Ai
Spin 10
Spin 5
Square
Square Check
Square Help
Square Warning
Star
Stop
Stop Circle
Stop Sign
Strikethrough
Suitcase
Sun
Super Goal Ai
Surgery
Swatches Palette
Swicht Left
Swicht Right
Table
Table Add
Table Remove
Tablet
Tablet Button
Tag
Target
Targuet Arrow
Terminal
Test Ai
Text
Text Align Center
Text Align Justify
Text Align Left
Text Align Right
Thumbs Down
Thumbs Up
Ticket Voucher
Time Ai
Time Coin
Time Remaining
Timeline Ai
Timeline Anticipate
Timer
Timer Add
Timer Close
Timer Remove
Trade
Trash Empty
Trash Full
Trending Down
Trending Up
Triangle
Triangle Check
Triangle Warning
Turbo Review
Two Cards
Underline
Undo
Unfold Less
Unfold More
User
User 2
User 3
User Add
User Card Id
User Check
User Circle
User Close
User Remove
User Square
User Voice
Users
Users Group
Volume Max
Volume Min
Volume Minus
Volume Off
Volume Off 2
Volume Plus
Warning
Water Drop
Wavy
Wavy Check
Wavy Help
Wavy Warning
Week Ai
Wifi High
Wifi Low
Wifi Medium
Wifi None
Wifi Off
Wifi Problem
Window
Window Check
Window Close
Window Code Block
Window Sidebar
Window Terminal
yarn add @medway-ui/icons
Cada ícone é um componente React. Por padrão, ele herda a cor do texto (currentColor) e tem 24 px.
page.jsx import { Bell } from "@medway-ui/icons" ;
export default function Page () {
return < Bell size ={ 20 } strokeWidth ={ 1.5 } className = "text-primary-foreground" />;
}
Propriedade Tipo Valores possíveis Padrão Descrição size number | string - 24 Largura e altura do ícone. strokeWidth number - 2 Espessura do traço. color string - "currentColor" Cor do traço. Com o padrão, o ícone usa a cor do texto em volta. className string - - Classes CSS aplicadas ao svg.
Os demais atributos de svg são repassados ao elemento.
O ícone é decorativo por padrão (aria-hidden="true"): o leitor de tela pula, e quem dá nome é o botão ou o texto em volta. Quando o ícone sozinho tem significado, passe aria-label (ou aria-labelledby) e ele vira uma imagem com esse nome (role="img").
page.jsx import { Warning } from "@medway-ui/icons" ;
export default function Page () {
return < Warning aria-label = "Atenção" />;
}
No app, importe de @medway-ui/icons/native. Os ícones nativos são desenhados com o react-native-svg e têm outra API: não há size nem className (o NativeWind não aplica classes no Svg), e a cor vem da prop color, que é obrigatória. Sem ela, o traço fica sem cor.
Para usar uma cor do tema, prefira o ThemedIcon do @medway-ui/native: ele recebe o ícone e o token de cor, sem o prefixo --color-, e acompanha o tema claro e escuro.
Screen.tsx import { Bell } from "@medway-ui/icons/native" ;
import { ThemedIcon } from "@medway-ui/native" ;
export function Screen () {
return < ThemedIcon icon ={ Bell } size ={ 20 } colorToken = "primary-foreground" />;
}
Propriedade Tipo Valores possíveis Padrão Descrição color string - - Cor do traço. Obrigatória. width number | string - 24 Largura do ícone. height number | string - 24 Altura do ícone. strokeWidth number - 2 Espessura do traço.
As demais props do Svg do react-native-svg (style, testID, opacity...) são repassadas a ele. O ícone é decorativo por padrão e fica escondido do leitor de tela; com accessibilityLabel (ou aria-label), ele vira uma imagem com esse nome.
O ThemedIcon recebe:
Propriedade Tipo Valores possíveis Padrão Descrição icon ComponentType - - Ícone de @medway-ui/icons/native. colorToken string - - Token de cor do traço, sem o prefixo --color-. Obrigatório. size number - 24 Largura e altura do ícone. strokeWidth number - 2 Espessura do traço.