docs: update type terminology from Int/Float/String/Bool to Number/Decimal/Text/Boolean
This commit is contained in:
@@ -71,9 +71,9 @@ life_arc Career { ... } // How someone changes over time
|
||||
Fields use a simple `name: value` format:
|
||||
|
||||
```storybook
|
||||
age: 34 // Integer
|
||||
skill_level: 0.95 // Float
|
||||
name: "Martha Baker" // String
|
||||
age: 34 // Number
|
||||
skill_level: 0.95 // Decimal
|
||||
name: "Martha Baker" // Text
|
||||
is_open: true // Boolean
|
||||
wake_time: 04:30 // Time
|
||||
bake_duration: 45m // Duration
|
||||
|
||||
@@ -18,8 +18,8 @@ Fields use the `name: value` format. Storybook supports several value types:
|
||||
|
||||
| Type | Example | Description |
|
||||
|------|---------|-------------|
|
||||
| Integer | `42` | Whole numbers |
|
||||
| Float | `0.85` | Decimal numbers |
|
||||
| Number | `42` | Whole numbers |
|
||||
| Decimal | `0.85` | Decimal numbers |
|
||||
| String | `"hello"` | Text in double quotes |
|
||||
| Boolean | `true` / `false` | Yes or no values |
|
||||
| Time | `14:30` | Clock times |
|
||||
|
||||
Reference in New Issue
Block a user