Skip to content

Commit a7dbb53

Browse files
authored
Merge pull request #14 from vega-ui/added-new-sizes
feat: 🎸 Added new sizes xl, xs for icon button and button
2 parents e982629 + 63789d2 commit a7dbb53

File tree

23 files changed

+2774
-48
lines changed

23 files changed

+2774
-48
lines changed

.changeset/hip-baths-heal.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@vega-ui/tokens": minor
3+
"@vega-ui/react-native": minor
4+
---
5+
6+
Added new sizes for button and icon button - xl, xs

apps/preview/app/(tabs)/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React, { useState } from 'react'
22
import { View } from 'react-native';
33
import { useColorScheme } from "@/hooks/useColorScheme";
4-
import { Button, ButtonLabel, TextField, Switch } from "@vega-ui/react-native";
4+
import { Button, ButtonLabel, TextField, Switch, ButtonIcon, IconButton, IconButtonIcon } from "@vega-ui/react-native";
5+
import { Globe } from "@vega-ui/reanimated-icons";
56

67
export default function HomeScreen() {
78
const scheme = useColorScheme()
@@ -18,6 +19,9 @@ export default function HomeScreen() {
1819
<Button onPress={() => setValue(value + 1)}>
1920
<ButtonLabel>Increment (now: {value})</ButtonLabel>
2021
</Button>
22+
<IconButton>
23+
<IconButtonIcon><Globe /></IconButtonIcon>
24+
</IconButton>
2125
</View>
2226
</View>
2327
);

0 commit comments

Comments
 (0)