mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 16:43:25 +00:00
39 lines
771 B
TypeScript
39 lines
771 B
TypeScript
import { Select, styled, withStaticProperties } from "tamagui";
|
|
|
|
const MWSelectFrame = styled(Select, {
|
|
variants: {
|
|
type: {
|
|
default: {
|
|
backgroundColor: "$inputBackground",
|
|
color: "$inputText",
|
|
borderColor: "$inputBorder",
|
|
},
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
type: "default",
|
|
},
|
|
});
|
|
|
|
const MWSelectTrigger = styled(Select.Trigger, {
|
|
variants: {
|
|
type: {
|
|
default: {
|
|
backgroundColor: "$inputBackground",
|
|
color: "$inputText",
|
|
placeholderTextColor: "$inputPlaceholderText",
|
|
borderColor: "$inputBorder",
|
|
},
|
|
},
|
|
},
|
|
defaultVariants: {
|
|
type: "default",
|
|
},
|
|
});
|
|
|
|
const MWSelect = withStaticProperties(MWSelectFrame, {
|
|
Trigger: MWSelectTrigger,
|
|
});
|
|
|
|
export { MWSelect };
|